mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-29 01:36:47 +08:00
fix: format param force to string
This commit is contained in:
+1
-1
@@ -246,7 +246,7 @@ class Life {
|
||||
}
|
||||
|
||||
format(discription) {
|
||||
return discription.replaceAll(/\{\s*[0-9a-zA-Z_-]+\s*?\}/g, (match) => this.#format(match));
|
||||
return `${discription}`.replaceAll(/\{\s*[0-9a-zA-Z_-]+\s*?\}/g, (match) => this.#format(match));
|
||||
}
|
||||
|
||||
#format(key) {
|
||||
|
||||
Reference in New Issue
Block a user