We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73a8246 commit bca077fCopy full SHA for bca077f
src/providers/ObjectScriptDiagnosticProvider.ts
@@ -104,11 +104,11 @@ export class ObjectScriptDiagnosticProvider {
104
105
// it is important to check script tag context before ObjectScript comments
106
// since /* ... */ comments can also be used in JavaScript
107
- if (text.match(/<script .*>/)) {
+ if (text.match(/<script .*>/i)) {
108
jsScript = true;
109
}
110
111
- if (text.match("&sql")) {
+ if (text.match(/&sql/i)) {
112
sql = true;
113
sqlParens = 0;
114
@@ -122,7 +122,7 @@ export class ObjectScriptDiagnosticProvider {
122
123
124
if (jsScript) {
125
- if (text.match(/<\/script>/)) {
+ if (text.match(/<\/script>/i)) {
126
jsScript = false;
127
128
continue;
0 commit comments