Skip to content

Commit f76e3b5

Browse files
committed
Make trailing slash required on cleanText regex
1 parent 428e8d0 commit f76e3b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/navigationBar.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,6 @@ namespace ts.NavigationBar {
713713
// \r - Carriage Return
714714
// \u2028 - Line separator
715715
// \u2029 - Paragraph separator
716-
return text.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g, "");
716+
return text.replace(/\\(\r?\n|\r|\u2028|\u2029)/g, "");
717717
}
718718
}

0 commit comments

Comments
 (0)