Commit acfe971e authored by nanahira's avatar nanahira

fix

parent 3e0139f2
Pipeline #7083 passed with stages
in 1 minute and 10 seconds
......@@ -118,9 +118,10 @@ const chineseCharacterWordGroup: Record<
const chineseCharacterList = Object.entries(chineseCharacterWordGroup).map(
([value, patternObjects]) => ({
value,
characterRegExp: patternObjects
.map((patternObject) => patternObject.character)
.join("|"),
characterRegExp: new RegExp(
patternObjects.map((patternObject) => patternObject.character).join("|"),
"g"
),
})
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment