Removing optional chaining, not valid in Node.
This commit is contained in:
parent
520651119b
commit
e24c6bafd1
|
@ -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