sentiment
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -23,3 +23,3 @@ /** | ||
return input | ||
.replace(/[^a-zA-Z ]+/g, '') | ||
.replace(/[^a-zA-Z- ]+/g, '') | ||
.replace('/ {2,}/',' ') | ||
@@ -62,3 +62,3 @@ .toLowerCase() | ||
var item = afinn[obj]; | ||
if (typeof item === 'undefined') continue; | ||
if (!afinn.hasOwnProperty(obj)) continue; | ||
@@ -65,0 +65,0 @@ words.push(obj); |
@@ -5,3 +5,3 @@ { | ||
"description": "AFINN-based sentiment analysis for Node.js", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"homepage": "https://github.com/thisandagain/sentiment", | ||
@@ -8,0 +8,0 @@ "repository": { |
83265
25
285