Skip to content

Commit 558e690

Browse files
committed
Clean up: Fix lint.
1 parent 0579e3b commit 558e690

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/unicode.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -676,10 +676,9 @@ std::vector<std::string> unicode_regex_split(const std::string & text, const std
676676
};
677677

678678
static const std::map<int, std::string> k_ucat_map = {
679-
{ llama_codepoint_flags::LLAMA_NUMBER, "\x30-\x39" }, // 0-9
680-
{ llama_codepoint_flags::LLAMA_LETTER, "\x41-\x5A\x61-\x7A" }, // A-Za-z
681-
{ llama_codepoint_flags::LLAMA_PUNCTUATION,
682-
"\x21-\x23\x25-\x2A\x2C-\x2F\x3A-\x3B\x3F-\x40\\\x5B-\\\x5D\x5F\\\x7B\\\x7D" }, // !-#%-*,-/:-;?-@\[-\]_\{\}
679+
{ llama_codepoint_flags::LLAMA_NUMBER, "\x30-\x39"}, // 0-9
680+
{ llama_codepoint_flags::LLAMA_LETTER, "\x41-\x5A\x61-\x7A"}, // A-Za-z
681+
{ llama_codepoint_flags::LLAMA_PUNCTUATION, "\x21-\x23\x25-\x2A\x2C-\x2F\x3A-\x3B\x3F-\x40\\\x5B-\\\x5D\x5F\\\x7B\\\x7D"}, // !-#%-*,-/:-;?-@\[-\]_\{\}
683682
};
684683

685684
// compute collapsed codepoints only if needed by at least one regex

src/unicode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct llama_codepoint_flags {
3333
uint16_t is_nfd : 1;
3434

3535
// decode from uint16
36-
inline llama_codepoint_flags(const uint16_t flags = 0) {
36+
inline llama_codepoint_flags(const uint16_t flags=0) {
3737
*reinterpret_cast<uint16_t*>(this) = flags;
3838
}
3939

0 commit comments

Comments
 (0)