Skip to content

Commit bca077f

Browse files
committed
ignore case for script and sql in diagnostics
1 parent 73a8246 commit bca077f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/providers/ObjectScriptDiagnosticProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ export class ObjectScriptDiagnosticProvider {
104104

105105
// it is important to check script tag context before ObjectScript comments
106106
// since /* ... */ comments can also be used in JavaScript
107-
if (text.match(/<script .*>/)) {
107+
if (text.match(/<script .*>/i)) {
108108
jsScript = true;
109109
}
110110

111-
if (text.match("&sql")) {
111+
if (text.match(/&sql/i)) {
112112
sql = true;
113113
sqlParens = 0;
114114
}
@@ -122,7 +122,7 @@ export class ObjectScriptDiagnosticProvider {
122122
}
123123

124124
if (jsScript) {
125-
if (text.match(/<\/script>/)) {
125+
if (text.match(/<\/script>/i)) {
126126
jsScript = false;
127127
}
128128
continue;

0 commit comments

Comments
 (0)