name-to-imdb
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17099