@bigbinary/eslint-plugin-neeto 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
var name = "@bigbinary/eslint-plugin-neeto";
|
|
325
|
-
var version = "1.
|
|
325
|
+
var version = "1.7.1";
|
|
326
326
|
var main = "dist/index.js";
|
|
327
327
|
var license = "UNLICENSED";
|
|
328
328
|
var scripts = {
|
|
@@ -12100,8 +12100,10 @@
|
|
|
12100
12100
|
}
|
|
12101
12101
|
};
|
|
12102
12102
|
|
|
12103
|
+
var VALID_URL_REGEX = /^((http|https):\/\/|www.)[a-z0-9]+([-.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/;
|
|
12104
|
+
|
|
12103
12105
|
var isNotURL = function isNotURL(value) {
|
|
12104
|
-
return !
|
|
12106
|
+
return !VALID_URL_REGEX.test(value);
|
|
12105
12107
|
};
|
|
12106
12108
|
var isNotEmail = function isNotEmail(value) {
|
|
12107
12109
|
return !neetoCommonsConstants.VALID_EMAIL_REGEX.test(value);
|