Skip to content

Commit

Permalink
Merge d20f670 into ba1ee25
Browse files Browse the repository at this point in the history
  • Loading branch information
krema committed Feb 28, 2016
2 parents ba1ee25 + d20f670 commit 2ac379a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gridstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
var height = val;
var heightUnit = 'px';
if (height && _.isString(height)) {
var match = height.match(/^([0-9]*\.[0-9]+|[0-9]+)(px|em|rem|vh|vw)?$/);
var match = height.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw)?$/);
if (!match) {
throw new Error('Invalid height');
}
Expand Down

0 comments on commit 2ac379a

Please sign in to comment.