Fixing regex for triple slash references

This commit is contained in:
Richard Knoll committed 2016-08-19 17:17:49 -07:00
1 parent 00facc2084
commit 0ebd19618d
1 file changed
+1 -1
+1 -1
View File
@@ -2070,7 +2070,7 @@ namespace ts {
* for completions.
* For example, this matches /// <reference path="fragment
*/
const tripleSlashDirectiveFragmentRegex = /^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^'"]*)$/;
const tripleSlashDirectiveFragmentRegex = /^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3]*)$/;
let commandLineOptionsStringToEnum: CommandLineOptionOfCustomType[];