From 107bac72a18ea7ede468e84cc396a137cbdeec80 Mon Sep 17 00:00:00 2001 From: Ken Soh Date: Mon, 14 Jun 2021 01:33:17 +0800 Subject: [PATCH] #972 - rename remove_char() to remove_chars() --- src/tagui_header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tagui_header.js b/src/tagui_header.js index 35e14cbf..c391f46a 100644 --- a/src/tagui_header.js +++ b/src/tagui_header.js @@ -350,7 +350,7 @@ function get_text(source_text, left_marker, right_marker, optional_count) { return source_text.slice(left_position + left_marker.length, right_position).trim();} // remove all occurrences of given characters from a given string -function remove_char(source_text, characters) { +function remove_chars(source_text, characters) { if (!source_text) return ''; else if (!characters) return source_text; characters = characters.replace(/\\n/g,'\n').replace(/\\r/g,'\r').replace(/\\t/g,'\t'); characters = characters.replace(/\\f/g,'\f').replace(/\\v/g,'\v').replace(/\\\\/g,'\\');