Skip to content

Commit

Permalink
Less restricitive check for what can be before var(
Browse files Browse the repository at this point in the history
  • Loading branch information
Poetro authored and MadLittleMods committed Apr 24, 2020
1 parent 44107a2 commit bbbd64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resolve-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function balancedVar(value) {
var match = balanced('(', ')', value)
if (match) {
// Check if it was prepended with var
if (/(?:^|\s)var$/.test(match.pre)) {
if (/(?:^|[^\w-])var$/.test(match.pre)) {
// Remove the var from the end of pre
return {
pre: match.pre.slice(0, -3),
Expand Down

0 comments on commit bbbd64d

Please sign in to comment.