LibWeb: Use is_ascii_digit() in SVG attribute parsing

This commit is contained in:
Jelle Raaijmakers
2025-11-19 14:51:18 +01:00
committed by Andreas Kling
parent bcd01da91d
commit 832e953c67
Notes: github-actions[bot] 2025-11-20 22:16:46 +00:00

View File

@@ -11,7 +11,6 @@
#include <AK/StringBuilder.h>
#include <AK/StringConversions.h>
#include <LibWeb/SVG/AttributeParser.h>
#include <ctype.h>
namespace Web::SVG {
@@ -800,7 +799,7 @@ bool AttributeParser::match_length() const
if (ch(offset) == '.')
offset++;
return !done() && isdigit(ch(offset));
return !done() && is_ascii_digit(ch(offset));
}
}