Skip to content

Commit

Permalink
better fix for #8652
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Feb 9, 2024
1 parent 8d5b6a4 commit fda9bac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/lib/yaml-intelligence/yaml-intelligence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ async function automationFromGoodParseScript(
// we're missing one of them at least: skip.
return noIntelligence(kind);
}
const m = codeLines[0].substring.match(/.*{([a-z]+)\s*.+}/);
const m = codeLines[0].substring.match(/.*{([a-z]+)\s*.*}/);
if (!m) {
// couldn't recognize language in script, return no intelligence
return noIntelligence(kind);
Expand Down
2 changes: 1 addition & 1 deletion src/resources/editor/tools/vs-code.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33365,7 +33365,7 @@ async function automationFromGoodParseScript(kind, context) {
if (codeLines.length < 2) {
return noIntelligence(kind);
}
const m = codeLines[0].substring.match(/.*{([a-z]+)\s*.+}/);
const m = codeLines[0].substring.match(/.*{([a-z]+)\s*.*}/);
if (!m) {
return noIntelligence(kind);
}
Expand Down
2 changes: 1 addition & 1 deletion src/resources/editor/tools/yaml/web-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fda9bac

Please sign in to comment.