Skip to content

Commit 5839626

Browse files
JoviDeCroockmarvinhagemeister
authored andcommitted
(chore) - streamline non-dimensional params with preact X (#111)
1 parent 64aa1c0 commit 5839626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// DOM properties that should NOT have "px" added when numeric
2-
export const IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;
2+
export const IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;
33

44
export let encodeEntities = s => String(s)
55
.replace(/&/g, '&')

0 commit comments

Comments
 (0)