Removing optional chaining, not valid in Node.
This commit is contained in:
parent
a5e27e1387
commit
4fbe37ff0e
|
@ -17,8 +17,8 @@ const preprocess = (
|
|||
const originalType = typeof value
|
||||
|
||||
// Convert to lowercase
|
||||
if (options.lowercase) {
|
||||
value = value?.toLowerCase ? value.toLowerCase() : value
|
||||
if (value && options.lowercase) {
|
||||
value = value.toLowerCase ? value.toLowerCase() : value
|
||||
}
|
||||
|
||||
// Escape characters
|
||||
|
|
Loading…
Reference in New Issue