Skip to content

Commit 7898f9f

Browse files
committed
Split change key
1 parent c8bff72 commit 7898f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pre_tokenizer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ PreTokenizerConfig& PreTokenizerConfig::parse_json(const json& json_config) {
7878
type = json_config.at("type");
7979
if (type == "Split") {
8080
try {
81-
pattern = json_config.at("pattern");
81+
pattern = json_config.at("pattern").at("Regex");
8282
} catch (json::out_of_range&) {
8383
}
8484
} else if (type == "Digits") {

0 commit comments

Comments
 (0)