Skip to content

Commit

Permalink
fix: STRF-11898 fix undefined variable stencil scss autofix (#1174)
Browse files Browse the repository at this point in the history
  • Loading branch information
jairo-bc authored Apr 4, 2024
1 parent 9ed9f62 commit 2f70840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nodeSass/UndefinedVariableFixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class UndefinedVariableFixer extends BaseFixer {
}

getUndefinedVariableName(errorMessage) {
const match = errorMessage.match(/\$([a-zA-Z]{1,})/gi);
const match = errorMessage.match(/\$[a-zA-Z_-]+/gi);
if (!match) {
throw new Error("Couldn't detemine undefined variable name!");
}
Expand Down

0 comments on commit 2f70840

Please sign in to comment.