Socket
Socket
Sign inDemoInstall

valid-data-url

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

2

index.js

@@ -24,5 +24,5 @@ /*global define */

}
validDataUrl.regex = /^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*?)$/i;
validDataUrl.regex = /^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i;
return validDataUrl;
}));
{
"name": "valid-data-url",
"version": "4.0.0",
"version": "4.0.1",
"description": "Detect if a string is a data URL",

@@ -52,6 +52,6 @@ "main": "index.js",

"devDependencies": {
"chai": "^4.3.4",
"coveralls": "^3.1.0",
"chai": "^4.3.6",
"coveralls": "^3.1.1",
"husky": "^6.0.0",
"jshint": "^2.12.0",
"jshint": "^2.13.5",
"mocha": "^8.3.2",

@@ -58,0 +58,0 @@ "nyc": "^15.1.0"

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