tony-o / t.co-bypass

104 stars 20 forks source link

Fix the RegEx used to identify t.co #6

Closed aawc closed 10 years ago

aawc commented 10 years ago

Escaping the '.' in t.co

tony-o commented 10 years ago

@aawc that isn't regex, it's just searching for a string :-)

timdorr commented 10 years ago

String.prototype.match() either takes a RegExp or implicitly converts the argument to a RegExp: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match

Before my PR landed, this was being treated as a regular expression. @aawc was correct.

tony-o commented 10 years ago

I stand corrected. Thank you @aawc and @timdorr