Comparing version 1.0.13 to 1.0.14
@@ -17,2 +17,4 @@ 'use strict'; | ||
require('./Array'); | ||
var Helper = function () { | ||
@@ -145,2 +147,5 @@ function Helper() { | ||
value: function foundText(string, search, strict) { | ||
if (this.checkReservedWords(string, search)) return true; | ||
if (strict) { | ||
@@ -159,2 +164,19 @@ if (_lodash2.default.toUpper(string) === _lodash2.default.toUpper(search)) return true; | ||
} | ||
}, { | ||
key: 'checkReservedWords', | ||
value: function checkReservedWords(string, search) { | ||
var found = false; | ||
switch (search) { | ||
case 'not_null': | ||
found = string !== null && string !== ''; | ||
break; | ||
case 'is_null': | ||
found = string === null || string === ''; | ||
break; | ||
} | ||
return found; | ||
} | ||
}]); | ||
@@ -161,0 +183,0 @@ |
{ | ||
"name": "psl-core", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "Core Library", | ||
@@ -13,3 +13,4 @@ "main": "dist/index.js", | ||
"prepublish": "npm run compile", | ||
"build": "webpack" | ||
"build": "webpack", | ||
"test": "ava ./tests" | ||
}, | ||
@@ -31,2 +32,3 @@ "author": { | ||
"devDependencies": { | ||
"ava": "^0.20.0", | ||
"babel-cli": "^6.24.0", | ||
@@ -41,3 +43,7 @@ "babel-core": "^6.24.0", | ||
"lodash": "^4.17.4" | ||
}, | ||
"ava": { | ||
"require": ["babel-register"], | ||
"babel": "inherit" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
49522
18
308
7