Added optional trailing slash regex

This commit is contained in:
Armando Aguirre committed 2019-08-23 15:42:03 -07:00
1 parent 25f609b3a2
commit a0c29fe4e5
2 files changed
+18 -1

No files matched your search

+1 -1
View File
@@ -713,6 +713,6 @@ namespace ts.NavigationBar {
// \r - Carriage Return
// \u2028 - Line separator
// \u2029 - Paragraph separator
return text.replace(/\\(\r?\n|\r|\u2028|\u2029)/g, "");
return text.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g, "");
}
}