1
0
Fork 0
mirror of synced 2024-10-01 17:47:46 +13:00

Removing optional chaining, not valid in Node.

This commit is contained in:
mike12345567 2021-07-23 13:07:10 +01:00
parent 520651119b
commit e24c6bafd1

View file

@ -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