Skip to content

Commit dda55f7

Browse files
committed
Allow chinese characters, closes #216
1 parent ae016f4 commit dda55f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

addons/pandora/util/tokenizer.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ static var regex:RegEx
44
static func tokenize(value:String) -> String:
55
if regex == null:
66
regex = RegEx.new()
7-
regex.compile("(^[^A-Z_])|([^A-Z0-9_])")
7+
regex.compile("(^[^A-Z_\u4e00-\u9fa5])|([^A-Z0-9_\u4e00-\u9fa5])")
88
var token = value.to_upper()
99

1010
var regex_matches = regex.search_all(token)

pandora/categories.gd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
class_name PandoraCategories
33

44

5-
const ROOT = "BfNTMLO-WG"
5+
const ROOT = "og1dmAzn1b"
66

77

88
class RootCategories:
9-
const ITEMS = "t2gVU9hBys"
10-
const NPCS = "dH4s0ttwht"
9+
const ITEMS = "EBUfjZlkKO"
10+
const NPCS = "S6Dp5mcWW6"
1111

1212

0 commit comments

Comments
 (0)