Browse Source

Make get() never fails

pull/1/merge
Luke Childs 9 years ago
parent
commit
9c89e31aef
  1. 6
      src/parser.js

6
src/parser.js

@ -8,6 +8,12 @@ export default class Urls {
}
get() {
// Make sure we have a string
if(typeof this.text !== 'string') {
this.text = '';
}
return this.text.match(regex);
}

Loading…
Cancel
Save