Skip to content

Commit e13fe55

Browse files
fix: linter
1 parent d7099a7 commit e13fe55

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

ios/extensions/StringExtension.mm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ + (NSDictionary *)getEscapedCharactersInfoFrom:(NSString *)text {
8383
codePoint = (UTF32Char)strtoul(decStr, NULL, 10);
8484
}
8585

86-
// Safety check: Valid Unicode scalar values are 0x1..0x10FFFF,
87-
// excluding surrogate code points (0xD800-0xDFFF). Replace invalid
88-
// values with U+FFFD (Replacement Character) to avoid crashes/truncation.
86+
// Safety check: Valid Unicode scalar values are
87+
// 0x1..0x10FFFF, excluding surrogate code points
88+
// (0xD800-0xDFFF). Replace invalid values with U+FFFD
89+
// (Replacement Character) to avoid crashes/truncation.
8990
if (codePoint == 0 || codePoint > 0x10FFFF ||
9091
(codePoint >= 0xD800 && codePoint <= 0xDFFF)) {
9192
codePoint = 0xFFFD;

0 commit comments

Comments
 (0)