ignore bin

This commit is contained in:
fxy060608
2018-11-18 16:17:04 +08:00
parent d7f7e5ce2b
commit 1949b2ba72
711 changed files with 1 additions and 50672 deletions
-11
View File
@@ -1,11 +0,0 @@
'use strict';
var escapeStringRegexp = require('escape-string-regexp');
module.exports = function (str, sub) {
if (typeof str !== 'string' || typeof sub !== 'string') {
throw new TypeError();
}
sub = escapeStringRegexp(sub);
return str.replace(new RegExp('^' + sub + '|' + sub + '$', 'g'), '');
};