New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

find-bad-url-filenames

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-bad-url-filenames - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

16

index.js

@@ -28,14 +28,8 @@ #!/usr/bin/env node

var illegalRe = /[\/\?<>\(\)\\:\*\|"!@#$%^&]/g;
var controlRe = /[\x00-\x1f\x80-\x9f]/g;
var reservedRe = /^\.+$/;
var windowsReservedRe = /^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i;
var windowsTrailingRe = /[\. ]+$/;
const badFiles = files.filter(file => (
illegalRe.test(file.filename) ||
controlRe.test(file.filename) ||
reservedRe.test(file.filename) ||
windowsReservedRe.test(file.filename) ||
windowsTrailingRe.test(file.filename)
/[+\/\\?<>():*|"!@#$%^&]/g.test(file.filename) ||
/[\x00-\x1f\x80-\x9f]/g.test(file.filename) ||
/^\.+$/.test(file.filename) ||
/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i.test(file.filename) ||
/[\. ]+$/.test(file.filename)
))

@@ -42,0 +36,0 @@

{
"name": "find-bad-url-filenames",
"version": "1.0.0",
"version": "1.0.1",
"description": "A node executable to find any filenames recursively with characters that don't belong in URLs",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc