mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Use is_ascii_digit() in SVG attribute parsing
This commit is contained in:
parent
bcd01da91d
commit
832e953c67
Notes:
github-actions[bot]
2025-11-20 22:16:46 +00:00
Author: https://github.com/gmta
Commit: 832e953c67
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6878
1 changed files with 1 additions and 2 deletions
|
|
@ -11,7 +11,6 @@
|
||||||
#include <AK/StringBuilder.h>
|
#include <AK/StringBuilder.h>
|
||||||
#include <AK/StringConversions.h>
|
#include <AK/StringConversions.h>
|
||||||
#include <LibWeb/SVG/AttributeParser.h>
|
#include <LibWeb/SVG/AttributeParser.h>
|
||||||
#include <ctype.h>
|
|
||||||
|
|
||||||
namespace Web::SVG {
|
namespace Web::SVG {
|
||||||
|
|
||||||
|
|
@ -800,7 +799,7 @@ bool AttributeParser::match_length() const
|
||||||
if (ch(offset) == '.')
|
if (ch(offset) == '.')
|
||||||
offset++;
|
offset++;
|
||||||
|
|
||||||
return !done() && isdigit(ch(offset));
|
return !done() && is_ascii_digit(ch(offset));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue