mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
codacy: Strings must use doublequote.
This commit is contained in:
@@ -2,9 +2,9 @@ var tableApi;
|
||||
|
||||
function escapeRegex(text) {
|
||||
var map = {
|
||||
'(': '\\(',
|
||||
')': '\\)',
|
||||
'.': '\\.',
|
||||
"(": "\\(",
|
||||
")": "\\)",
|
||||
".": "\\.",
|
||||
};
|
||||
return text.replace(/[().]/g, function(m) { return map[m]; });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user