Skip to content

Commit 2567fde

Browse files
committed
update regexp
1 parent 4a4b642 commit 2567fde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import devPropertiesWithoutUnitsRegExp from './devPropertiesWithoutUnitsRegExp'
66
import TokenStream from './TokenStream'
77

88
// Note if this is wrong, you'll need to change tokenTypes.js too
9-
const numberOrLengthRe = /^([+-]?(?:\d*\.)?\d+(?:[Ee][+-]?\d+)?)(?:px)?$/i
9+
const numberOrLengthRe = /^([+-]?(?:\d*\.)?\d+(?:[Ee][+-]?\d+)?)(?:px)?$/
10+
const numberOnlyRe = /^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:[Ee][+-]?\d+)?$/
1011
const boolRe = /^true|false$/i
1112
const nullRe = /^null$/i
1213
const undefinedRe = /^undefined$/i
13-
const numberOnlyRe = /^[1-9.-][\d.Ee+-]*$/
1414

1515
// Undocumented export
1616
export const transformRawValue = (propName, value) => {

0 commit comments

Comments
 (0)