mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-05 01:10:24 +00:00
LibWeb: Use is_ascii_digit() in SVG attribute parsing
This commit is contained in:
committed by
Andreas Kling
parent
bcd01da91d
commit
832e953c67
Notes:
github-actions[bot]
2025-11-20 22:16:46 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/832e953c67e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6878
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user