Skip to content

Commit

Permalink
fix undefined match variable
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenschobert committed Sep 6, 2020
1 parent d287c68 commit 88c6987
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/instafeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@
var exp = /#([^\s]+)/gi;
var badChars = /[~`!@#$%^&*\(\)\-\+={}\[\]:;"'<>\?,\./|\\\s]+/i; // non-allowed characters
var tags = [];
var match = null;

if (typeof str === 'string') {
while ((match = exp.exec(str)) !== null) {
Expand Down

0 comments on commit 88c6987

Please sign in to comment.