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
|
const originalType = typeof value
|
||||||
|
|
||||||
// Convert to lowercase
|
// Convert to lowercase
|
||||||
if (options.lowercase) {
|
if (value && options.lowercase) {
|
||||||
value = value?.toLowerCase ? value.toLowerCase() : value
|
value = value.toLowerCase ? value.toLowerCase() : value
|
||||||
}
|
}
|
||||||
|
|
||||||
// Escape characters
|
// Escape characters
|
||||||
|
|
Loading…
Reference in New Issue