From b726fa89189e5329a8b1e958f1bd42629ca1cc82 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 19 Nov 2024 20:40:08 +1000 Subject: [PATCH] Scripts: Fix SyntaxWarning in glyph range updater --- scripts/generate_update_fa_glyph_ranges.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/generate_update_fa_glyph_ranges.py b/scripts/generate_update_fa_glyph_ranges.py index 3c6d7c4bf..3c4721331 100755 --- a/scripts/generate_update_fa_glyph_ranges.py +++ b/scripts/generate_update_fa_glyph_ranges.py @@ -56,9 +56,9 @@ with open(emoji_file, "r") as f: continue u8_encodings[match[1]] = bytes.fromhex(match[2].replace("\\x", "")) -out_pattern = "(static constexpr ImWchar FA_ICON_RANGE\[\] = \{)[0-9A-Z_a-z, \n]+(\};)" -out_pf_pattern = "(static constexpr ImWchar PF_ICON_RANGE\[\] = \{)[0-9A-Z_a-z, \n]+(\};)" -out_emoji_pattern = "(static constexpr ImWchar EMOJI_ICON_RANGE\[\] = \{)[0-9A-Z_a-z, \n]+(\};)" +out_pattern = "(static constexpr ImWchar FA_ICON_RANGE\\[\\] = \\{)[0-9A-Z_a-z, \n]+(\\};)" +out_pf_pattern = "(static constexpr ImWchar PF_ICON_RANGE\\[\\] = \\{)[0-9A-Z_a-z, \n]+(\\};)" +out_emoji_pattern = "(static constexpr ImWchar EMOJI_ICON_RANGE\\[\\] = \\{)[0-9A-Z_a-z, \n]+(\\};)" def get_pairs(tokens): codepoints = list()