From f220234fe142f49add8c231af67ca609ee19a901 Mon Sep 17 00:00:00 2001 From: MichelleTPY Date: Sat, 14 Dec 2024 15:42:55 +0000 Subject: [PATCH] Clean up: Fix lint. --- src/unicode.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/unicode.cpp b/src/unicode.cpp index f379c1b74..9f043beb0 100644 --- a/src/unicode.cpp +++ b/src/unicode.cpp @@ -670,15 +670,15 @@ std::vector unicode_regex_split(const std::string & text, const std }; static const std::map k_ucat_cpt = { - { llama_codepoint_flags::LLAMA_NUMBER, 0xD1 }, - { llama_codepoint_flags::LLAMA_LETTER, 0xD2 }, + { llama_codepoint_flags::LLAMA_NUMBER, 0xD1 }, + { llama_codepoint_flags::LLAMA_LETTER, 0xD2 }, { llama_codepoint_flags::LLAMA_PUNCTUATION, 0xD3 }, }; static const std::map k_ucat_map = { - { llama_codepoint_flags::LLAMA_NUMBER, "\x30-\x39"}, // 0-9 - { llama_codepoint_flags::LLAMA_LETTER, "\x41-\x5A\x61-\x7A"}, // A-Za-z - { llama_codepoint_flags::LLAMA_PUNCTUATION, "\x21-\x23\x25-\x2A\x2C-\x2F\x3A-\x3B\x3F-\x40\\\x5B-\\\x5D\x5F\\\x7B\\\x7D"}, // !-#%-*,-/:-;?-@\[-\]_\{\} + { llama_codepoint_flags::LLAMA_NUMBER, "\x30-\x39" }, // 0-9 + { llama_codepoint_flags::LLAMA_LETTER, "\x41-\x5A\x61-\x7A" }, // A-Za-z + { llama_codepoint_flags::LLAMA_PUNCTUATION, "\x21-\x23\x25-\x2A\x2C-\x2F\x3A-\x3B\x3F-\x40\\\x5B-\\\x5D\x5F\\\x7B\\\x7D" }, // !-#%-*,-/:-;?-@\[-\]_\{\} }; // compute collapsed codepoints only if needed by at least one regex