Skip to content

Commit

Permalink
is-calc-length enforce string fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Black Mirror committed Mar 5, 2018
1 parent e84af4f commit 208618c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scss/types/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $css-default-modes: (initial, inherit);
}

@function is-calc-length($cl) {
@return is-defined($cl) and string-starts-with($cl, 'calc(') and string-ends-with($cl, ')');
@return is-defined($cl) and string-starts-with($cl + '', 'calc(') and string-ends-with($cl + '', ')');
}

$length-modes: array-concat((auto), $css-default-modes);
Expand Down

0 comments on commit 208618c

Please sign in to comment.