Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

name-to-imdb

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

name-to-imdb - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

2

helpers.js

@@ -60,3 +60,3 @@ var helpers = {}

helpers.sanitizeName = function(name) {
return name.replace(/[^a-zA-Z0-9 ]/g, '').toLowerCase().replace('the ','')
return name.replace(/[^a-zA-Z0-9 ]/g, '').toLowerCase().replace('the ','').replace(/\s+/g, ' ').trim()
}

@@ -63,0 +63,0 @@

{
"name": "name-to-imdb",
"version": "3.0.2",
"version": "3.0.3",
"description": "Finds IMDB ID by movie/series name (fuzzily) and optionally year and type",

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

@@ -74,3 +74,3 @@ var needle = require("needle")

var movieMatch = task.type == 'movie' && res.type == 'feature'
var movieMatch = task.type == 'movie' && ['feature', 'TV special'].indexOf(res.type) > -1

@@ -77,0 +77,0 @@ var seriesMatch = task.type == 'series' && ['TV series', 'TV mini-series'].indexOf(res.type) > -1

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