File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1698,9 +1698,15 @@ namespace ts.Completions {
16981698 * Matches a triple slash reference directive with an incomplete string literal for its path. Used
16991699 * to determine if the caret is currently within the string literal and capture the literal fragment
17001700 * 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"
17021708 */
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" ] * ) $ / ;
17041710
17051711 interface VisibleModuleInfo {
17061712 moduleName : string ;
You can’t perform that action at this time.
0 commit comments