Socket
Socket
Sign inDemoInstall

ff-validator

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.2-beta to 0.2.3-beta

2

dist/rules/noSpacesAtEnd/index.js

@@ -12,4 +12,4 @@ 'use strict';

return function (value, allValues) {
return core_1.isValid(!/\s|\t|(\r)?\n$/.test(value), errorMessage);
return core_1.isValid(!/(\s|\t|(\r)?\n)$/.test(value), errorMessage);
};
};

@@ -12,4 +12,4 @@ 'use strict';

return function (value, allValues) {
return core_1.isValid(!/^\s|\t|(\r)?\n/.test(value), errorMessage);
return core_1.isValid(!/^(\s|\t|(\r)?\n)/.test(value), errorMessage);
};
};
{
"name": "ff-validator",
"version": "0.2.2-beta",
"version": "0.2.3-beta",
"description": "Customizable validation rules",

@@ -5,0 +5,0 @@ "main": "dist/fieldValidator.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc