mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-04-06 04:58:18 +08:00
fix: format param force to string
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
"test": "vitest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"v-transform": "^2.2.0",
|
||||
"vite": "^7.3.1",
|
||||
"vitest": "^4.0.18"
|
||||
"v-transform": "^2.2.1",
|
||||
"vite": "^8.0.3",
|
||||
"vitest": "^4.1.2"
|
||||
}
|
||||
}
|
||||
|
||||
1040
pnpm-lock.yaml
generated
1040
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -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