Comparing version 1.2.2 to 1.2.3
@@ -563,2 +563,22 @@ (function(scope) { | ||
/** | ||
* get regexp from wild card | ||
*/ | ||
this.getRegExp = function(wildcard) { | ||
var regExp; | ||
if (!wildcard) | ||
wildcard = '*'; | ||
wildcard = '^' + wildcard; /* search from start of line */ | ||
wildcard = Util.replaceStr(wildcard, '.', '\\.'); | ||
wildcard = Util.replaceStr(wildcard, '*', '.*'); | ||
wildcard = Util.replaceStr(wildcard, '?', '.?\\'); | ||
wildcard += '$'; /* search to end of line */ | ||
regExp = new RegExp(wildcard); | ||
return regExp; | ||
}; | ||
/** | ||
* function render template with view | ||
@@ -565,0 +585,0 @@ * @templ |
{ | ||
"name": "util-io", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -5,0 +5,0 @@ "description": "Util.io - utilites for vanila js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38367
897