mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2026-05-11 00:00:01 +08:00
ignore bin
This commit is contained in:
-11
@@ -1,11 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
||||
|
||||
module.exports = function (str) {
|
||||
if (typeof str !== 'string') {
|
||||
throw new TypeError('Expected a string');
|
||||
}
|
||||
|
||||
return str.replace(matchOperatorsRe, '\\$&');
|
||||
};
|
||||
Reference in New Issue
Block a user