Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

escaping unescaped dash in regexes to pass hint

  • Loading branch information...
commit 609a26f62229cd7b3c860531ee853c7037f1abf2 1 parent 36b7fb7
@boazsender authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/jquery.twitter.js
View
4 src/jquery.twitter.js
@@ -13,12 +13,12 @@ var linkify = linkify || function() {};
var
mention = function( str ) {
- return str.replace(/[@]+[a-z0-9-_]+/ig, function( username ) {
+ return str.replace(/[@]+[a-z0\-9-_]+/ig, function( username ) {
return username.link("http://twitter.com/"+ username.replace("@","") );
});
},
hashtags = function( str ) {
- return str.replace(/[#]+[a-z0-9-_]+/ig, function( tag ) {
+ return str.replace(/[#]+[a-z0\-9-_]+/ig, function( tag ) {
return tag.link("http://search.twitter.com/search?q="+tag.replace("#","%23"));
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.