Clean up: Fix lint.
This commit is contained in:
parent
0579e3bf65
commit
558e690614
2 changed files with 4 additions and 5 deletions
|
@ -678,8 +678,7 @@ std::vector<std::string> unicode_regex_split(const std::string & text, const std
|
|||
static const std::map<int, std::string> 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_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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue