mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-04-18 10:42:58 +08:00
fix: format param force to string
This commit is contained in:
@@ -12,8 +12,8 @@
|
|||||||
"test": "vitest"
|
"test": "vitest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"v-transform": "^2.2.0",
|
"v-transform": "^2.2.1",
|
||||||
"vite": "^7.3.1",
|
"vite": "^8.0.3",
|
||||||
"vitest": "^4.0.18"
|
"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) {
|
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) {
|
#format(key) {
|
||||||
|
|||||||
Reference in New Issue
Block a user