You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

find-hashtags

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-hashtags - npm Package Compare versions

Comparing version

to
1.0.0

@@ -65,3 +65,3 @@ var XRegExp = require('xregexp').XRegExp;

FindHashtags.prototype._getMatches = function () {
return this._matches.length === 0 ? null : this._matches;
return this._matches.length === 0 ? [] : this._matches;
};

@@ -68,0 +68,0 @@

{
"name": "find-hashtags",
"version": "0.1.0",
"version": "1.0.0",
"description": "Extracts the hashtags from a string",

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

@@ -7,3 +7,3 @@ var test = require('tape');

t.equal(hashtags(content), null);
t.deepEqual(hashtags(content), []);
t.end();

@@ -10,0 +10,0 @@ });

Sorry, the diff of this file is not supported yet