Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
UrlTokenizer.prototype.tokenize = function (s) {
if (!s || s.length == 0)
return [];
if (this.includeIndices) {
return twitter.extractUrlsWithIndices(s);
}
else {
return twitter.extractUrls(s);
}
};