From d4abb4b1438cb316aacae480e7b7e9b055a60b24 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sun, 17 Jun 2018 01:04:55 +1000 Subject: 120 line width, package upgrade --- src/js/utils/strings.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/js/utils/strings.js') diff --git a/src/js/utils/strings.js b/src/js/utils/strings.js index 8ca14ff8..c872498c 100644 --- a/src/js/utils/strings.js +++ b/src/js/utils/strings.js @@ -29,7 +29,10 @@ export function getPercentage(current, max) { // Replace all occurances of a string in a string export function replaceAll(input = '', find = '', replace = '') { - return input.replace(new RegExp(find.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g, '\\$1'), 'g'), replace.toString()); + return input.replace( + new RegExp(find.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g, '\\$1'), 'g'), + replace.toString(), + ); } // Convert to title case -- cgit v1.2.3