Browse Source

Make sure get() always returns an array

pull/1/merge
Luke Childs 9 years ago
parent
commit
a4217d71cd
  1. 3
      src/parser.js

3
src/parser.js

@ -14,7 +14,8 @@ export default class Urls {
this.text = ''; this.text = '';
} }
return this.text.match(regex); // Always return array
return this.text.match(regex) || [];
} }
} }

Loading…
Cancel
Save