22 Star 218 Fork 230

记得要让着本宝宝/ckjcode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.idea
_includes
_layouts
_posts
css
fonts
img
js
less
node_modules
.bin
abbrev
align-text
amdefine
ansi-regex
ansi-styles
argparse
asn1
assert-plus
async
aws-sign2
boom
browserify-zlib
buffer-from
camelcase
center-align
chalk
clean-css
cliui
coffee-script
colors
combined-stream
commander
concat-stream
core-util-is
cryptiles
ctype
dateformat
debug
decamelize
deep-equal
defined
delayed-stream
escape-string-regexp
index.js
license
package.json
readme.md
esprima
eventemitter2
exit
faye-websocket
figures
findup-sync
forever-agent
form-data
gaze
getobject
glob
globule
graceful-fs
grunt-contrib-less/node_modules
grunt-contrib-uglify/node_modules
grunt-contrib-watch/node_modules
grunt-legacy-log-utils
grunt-legacy-log
grunt-legacy-util
gzip-size
has-ansi
has-color
hawk
hoek
hooker
http-signature
iconv-lite
inherits
ip-regex
is-buffer
isarray
js-yaml
json-stringify-safe
jsonify
kind-of
lazy-cache
less
lodash
longest
lru-cache
maxmin
mime-types
mime
minimatch
minimist
mkdirp
natives
node-uuid
nopt
noptify
oauth-sign
object-assign
pako
pretty-bytes
process-nextick-args
psl
punycode
qs
readable-stream
repeat-string
request
right-align
rimraf
safe-buffer
sigmund
sntp
source-map
string_decoder
stringstream
strip-ansi
supports-color
tape
tiny-lr-fork
tough-cookie
tunnel-agent
typedarray
uglify-js
uglify-to-browserify
underscore.string
underscore
util-deprecate
which
window-size
wordwrap
yargs
zlib-browserify
pwa
.gitignore
404.html
ChengKeJ.github.io.iml
Graph Bed.md
Gruntfile.js
LICENSE
README.md
_config.yml
about.html
chengkej.io.iml
codecov.yml
feed.xml
index.html
offline.html
package-lock.json
package.json
sw.js
tags.html
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

escape-string-regexp Build Status

Escape RegExp special characters

Install

$ npm install --save escape-string-regexp

Usage

const escapeStringRegexp = require('escape-string-regexp');

const escapedString = escapeStringRegexp('how much $ for a unicorn?');
//=> 'how much \$ for a unicorn\?'

new RegExp(escapedString);

License

MIT © Sindre Sorhus

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/ckjcode/ckjcode.git
git@gitee.com:ckjcode/ckjcode.git
ckjcode
ckjcode
ckjcode
master

搜索帮助