Skip to content

Commit

Permalink
Don't use stateful regex (#209268)
Browse files Browse the repository at this point in the history
Fixes #209254
  • Loading branch information
mjbvz authored Apr 1, 2024
1 parent fd5ac01 commit cb83e0b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const standardLanguageDescriptions: LanguageDescription[] = [
diagnosticSource: 'ts',
diagnosticLanguage: DiagnosticLanguage.TypeScript,
languageIds: [languageIds.typescript, languageIds.typescriptreact],
configFilePattern: /^tsconfig(\..*)?\.json$/gi,
configFilePattern: /^tsconfig(\..*)?\.json$/i,
standardFileExtensions: [
'ts',
'tsx',
Expand All @@ -45,7 +45,7 @@ export const standardLanguageDescriptions: LanguageDescription[] = [
diagnosticSource: 'ts',
diagnosticLanguage: DiagnosticLanguage.JavaScript,
languageIds: [languageIds.javascript, languageIds.javascriptreact],
configFilePattern: /^jsconfig(\..*)?\.json$/gi,
configFilePattern: /^jsconfig(\..*)?\.json$/i,
standardFileExtensions: [
'js',
'jsx',
Expand Down

0 comments on commit cb83e0b

Please sign in to comment.