mirror of
https://github.com/koalyptus/TableFilter.git
synced 2026-03-15 23:25:44 +01:00
Webpack: clean state
This commit is contained in:
parent
fc528c6299
commit
7e6aadcfb5
197 changed files with 1 additions and 39362 deletions
|
|
@ -1,51 +0,0 @@
|
|||
define(["exports"], function (exports) {
|
||||
/**
|
||||
* String utilities
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
var Str = {};
|
||||
|
||||
Str.lower = function (text) {
|
||||
return text.toLowerCase();
|
||||
};
|
||||
|
||||
Str.upper = function (text) {
|
||||
return text.toUpperCase();
|
||||
};
|
||||
|
||||
Str.trim = function (text) {
|
||||
if (text.trim) {
|
||||
return text.trim();
|
||||
}
|
||||
return text.replace(/^\s*|\s*$/g, "");
|
||||
};
|
||||
|
||||
Str.isEmpty = function (text) {
|
||||
return this.trim(text) === "";
|
||||
};
|
||||
|
||||
Str.rgxEsc = function (text) {
|
||||
function escape(e) {
|
||||
var a = new RegExp("\\" + e, "g");
|
||||
text = text.replace(a, "\\" + e);
|
||||
}
|
||||
|
||||
var chars = ["\\", "[", "^", "$", ".", "|", "?", "*", "+", "(", ")"];
|
||||
for (var e = 0; e < chars.length; e++) {
|
||||
escape(chars[e]);
|
||||
}
|
||||
return text;
|
||||
};
|
||||
|
||||
Str.matchCase = function (text, mc) {
|
||||
if (!mc) {
|
||||
return this.lower(text);
|
||||
}
|
||||
return text;
|
||||
};
|
||||
|
||||
exports.Str = Str;
|
||||
});
|
||||
//# sourceMappingURL=string.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue