chore: fix some typos (#12228)

Signed-off-by: findseat <penglili@outlook.com>
This commit is contained in:
findseat 2024-04-08 17:38:49 +08:00 committed by GitHub
parent aa5b1824a5
commit 82923ec9cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# Ignore File that will be copied to Angular
/files/
# Ignore sandbox enviroment
# Ignore sandbox environment
./sandbox/

View File

@ -72,7 +72,7 @@ export const interpolateFunction = <T extends (...args: never[]) => unknown>(
for (const [name, jsValue] of Object.entries(replacements)) {
value = value.replace(
new RegExp(`PLACEHOLDER\\(\\s*(?:'${name}'|"${name}")\\s*\\)`, 'g'),
// Wrapping this ensures tersers that accidently inline PLACEHOLDER calls
// Wrapping this ensures tersers that accidentally inline PLACEHOLDER calls
// are still valid. Without, we may get calls like ()=>{...}() which is
// not valid.
`(${jsValue})`