uniformize
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -20,3 +20,3 @@ "use strict"; | ||
String.prototype.subText = function(query, strict) { | ||
if (!query) return false; | ||
if (query == null) return false; | ||
if (strict) return this.standardize() === query.standardize(); | ||
@@ -23,0 +23,0 @@ return this.standardize().includes(query.standardize()); |
@@ -7,3 +7,3 @@ { | ||
"type": "commonjs", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"repository": { | ||
@@ -10,0 +10,0 @@ "type": "git", |
@@ -21,3 +21,3 @@ String.prototype.removeAccents = function () { | ||
String.prototype.subText = function (query?: string | null, strict?: boolean) { | ||
if (!query) return false; | ||
if (query ==null) return false; | ||
if (strict) return this.standardize() === query.standardize(); | ||
@@ -24,0 +24,0 @@ return this.standardize().includes(query.standardize()); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15323