Skip to content

Commit 832e953

Browse files
gmtaawesomekling
authored andcommitted
LibWeb: Use is_ascii_digit() in SVG attribute parsing
1 parent bcd01da commit 832e953

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Libraries/LibWeb/SVG/AttributeParser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <AK/StringBuilder.h>
1212
#include <AK/StringConversions.h>
1313
#include <LibWeb/SVG/AttributeParser.h>
14-
#include <ctype.h>
1514

1615
namespace Web::SVG {
1716

@@ -800,7 +799,7 @@ bool AttributeParser::match_length() const
800799
if (ch(offset) == '.')
801800
offset++;
802801

803-
return !done() && isdigit(ch(offset));
802+
return !done() && is_ascii_digit(ch(offset));
804803
}
805804

806805
}

0 commit comments

Comments
 (0)