repo.or.cz
/
gitter.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'hotfix/21.56.9' into master
[gitter.git]
/
server
/
utils
/
escape-regexp.js
blob
b954a412f2599311248e7a6470753d422836d7d1
1
'use strict'
;
2
3
module
.
exports
=
function
escapeRegExp
(
str
) {
4
return
str
.
replace
(
/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g
,
'
\\
$&'
);
5
};