Skip to content

Commit 0ebd196

Browse files
committed
Fixing regex for triple slash references
1 parent 00facc2 commit 0ebd196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2070,7 +2070,7 @@ namespace ts {
20702070
* for completions.
20712071
* For example, this matches /// <reference path="fragment
20722072
*/
2073-
const tripleSlashDirectiveFragmentRegex = /^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^'"]*)$/;
2073+
const tripleSlashDirectiveFragmentRegex = /^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3]*)$/;
20742074

20752075
let commandLineOptionsStringToEnum: CommandLineOptionOfCustomType[];
20762076

0 commit comments

Comments
 (0)