Skip to content

Revert "Handle null and undefined values" #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert "Handle null and undefined values"
This reverts commit 4f89d5f.
  • Loading branch information
Jacob Parker committed Nov 13, 2017
commit 82a5b32c19d041a0134d3417bae7a10763b39d9f
3 changes: 0 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ const boolRe = /^true|false$/i;
export const transformRawValue = (input) => {
const value = input.trim();

if (value === 'null') return null
if (value === 'undefined') return undefined

const numberMatch = value.match(numberOrLengthRe);
if (numberMatch !== null) return Number(numberMatch[1]);

Expand Down