Skip to content

Commit

Permalink
Merge pull request #3 from nimaeskandary/regex
Browse files Browse the repository at this point in the history
make regex backwards compatible with older node
  • Loading branch information
nimaeskandary authored Apr 13, 2018
2 parents 2e8cb65 + ed2796e commit a1d7dc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/vaderSentiment.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vader-sentiment",
"version": "1.1.0",
"version": "1.1.1",
"description": "javascript port of vader sentiment tool",
"main": "build/vaderSentiment.bundle.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/vaderSentiment.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const C_INCR = 0.733;

export const N_SCALAR = -0.74;

export const REGEX_REMOVE_PUNCTUATION = new RegExp(/[!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]/, 'g');
export const REGEX_REMOVE_PUNCTUATION = new RegExp(/[!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]/g);
// ` // <- to fix ide thinking grave accent in regex is starting a template quote

export const PUNC_LIST = [
Expand Down

0 comments on commit a1d7dc9

Please sign in to comment.