Skip to content

Commit

Permalink
Update isSCSS test regex (#7922)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Apr 2, 2020
1 parent 22e3004 commit 93aa378
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/language-css/utils.js
Expand Up @@ -60,7 +60,7 @@ function getPropOfDeclNode(path) {

function isSCSS(parser, text) {
const hasExplicitParserChoice = parser === "less" || parser === "scss";
const IS_POSSIBLY_SCSS = /(\w\s*: [^}:]+|#){|@import[^\n]+(url|,)/;
const IS_POSSIBLY_SCSS = /(\w\s*:\s*[^}:]+|#){|@import[^\n]+(?:url|,)/;
return hasExplicitParserChoice
? parser === "scss"
: IS_POSSIBLY_SCSS.test(text);
Expand Down
1 change: 0 additions & 1 deletion tests_config/run_spec.js
Expand Up @@ -28,7 +28,6 @@ const unstableTests = new Map(
"comments/return-statement.js",
"comments/tagged-template-literal.js",
"comments_closure_typecast/iife.js",
"css_atrule/include.css",
"graphql_interface/separator-detection.graphql",
[
"html_angular/attributes.component.html",
Expand Down

0 comments on commit 93aa378

Please sign in to comment.