We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40fb023 commit 4f89d5fCopy full SHA for 4f89d5f
src/index.js
@@ -12,6 +12,9 @@ const boolRe = /^true|false$/i;
12
export const transformRawValue = (input) => {
13
const value = input.trim();
14
15
+ if (value === 'null') return null
16
+ if (value === 'undefined') return undefined
17
+
18
const numberMatch = value.match(numberOrLengthRe);
19
if (numberMatch !== null) return Number(numberMatch[1]);
20
0 commit comments