File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1698,9 +1698,15 @@ namespace ts.Completions {
1698
1698
* Matches a triple slash reference directive with an incomplete string literal for its path. Used
1699
1699
* to determine if the caret is currently within the string literal and capture the literal fragment
1700
1700
* for completions.
1701
- * For example, this matches /// <reference path="fragment
1701
+ * For example, this matches
1702
+ *
1703
+ * /// <reference path="fragment
1704
+ *
1705
+ * but not
1706
+ *
1707
+ * /// <reference path="fragment"
1702
1708
*/
1703
- const tripleSlashDirectiveFragmentRegex = / ^ ( \/ \/ \/ \s * < r e f e r e n c e \s + ( p a t h | t y p e s ) \s * = \s * (?: ' | " ) ) ( [ ^ \3] * ) $ / ;
1709
+ const tripleSlashDirectiveFragmentRegex = / ^ ( \/ \/ \/ \s * < r e f e r e n c e \s + ( p a t h | t y p e s ) \s * = \s * (?: ' | " ) ) ( [ ^ \3" ] * ) $ / ;
1704
1710
1705
1711
interface VisibleModuleInfo {
1706
1712
moduleName : string ;
You can’t perform that action at this time.
0 commit comments