diff options
Diffstat (limited to 'ui/imports/lib/regex-utils.js')
-rw-r--r-- | ui/imports/lib/regex-utils.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/ui/imports/lib/regex-utils.js b/ui/imports/lib/regex-utils.js deleted file mode 100644 index fd9bce2..0000000 --- a/ui/imports/lib/regex-utils.js +++ /dev/null @@ -1,11 +0,0 @@ -///////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others / -// / -// All rights reserved. This program and the accompanying materials / -// are made available under the terms of the Apache License, Version 2.0 / -// which accompanies this distribution, and is available at / -// http://www.apache.org/licenses/LICENSE-2.0 / -///////////////////////////////////////////////////////////////////////////////////////// -export function regexEscape(s) { - return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); -} |