mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: fix some typos (#12228)
Signed-off-by: findseat <penglili@outlook.com>
This commit is contained in:
parent
aa5b1824a5
commit
82923ec9cb
@ -1,5 +1,5 @@
|
||||
# Ignore File that will be copied to Angular
|
||||
/files/
|
||||
|
||||
# Ignore sandbox enviroment
|
||||
# Ignore sandbox environment
|
||||
./sandbox/
|
||||
|
@ -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})`
|
||||
|
Loading…
Reference in New Issue
Block a user