Skip to content

Commit

Permalink
Make trailing slash required on cleanText regex
Browse files Browse the repository at this point in the history
  • Loading branch information
armanio123 committed Aug 23, 2019
1 parent 428e8d0 commit f76e3b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/navigationBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, "");
}
}

0 comments on commit f76e3b5

Please sign in to comment.