Fix undefined error.
This commit is contained in:
parent
c247b194c2
commit
c10cdd3aaf
|
@ -231,7 +231,7 @@ export function processStringSync(
|
|||
return process(string)
|
||||
}
|
||||
} catch (err: any) {
|
||||
const { noThrow = true } = opts
|
||||
const { noThrow = true } = opts || {}
|
||||
if (noThrow) {
|
||||
return input
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue