Skip to content

Commit

Permalink
v0.5.2 - Fix Twitter hashtag links
Browse files Browse the repository at this point in the history
  • Loading branch information
christianvuerings committed Aug 26, 2014
1 parent 071f6f1 commit 7444fb0
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion download/js/script.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions download/js/uglifyjs-cs.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions jquery.lifestream.js
@@ -1,7 +1,7 @@
/*!
* jQuery Lifestream Plug-in
* Show a stream of your online activity
* @version 0.5.1
* @version 0.5.2
* @author Christian Vuerings et al.
* @copyright Copyright 2014, Christian Vuerings - http://denbuzze.com
* @license https://github.com/christianv/jquery-lifestream/blob/master/LICENSE MIT
Expand Down Expand Up @@ -2401,8 +2401,8 @@ $.fn.lifestream.feeds.tumblr = function( config, callback ) {
return t.replace(
/(^|[^\w'"]+)\#([a-zA-Z0-9ÅåÄäÖöØøÆæÉéÈèÜüÊêÛûÎî_]+)/g,
function( m, m1, m2 ) {
return m1 + '<a href="http://search.twitter.com/search?q=%23' +
m2 + '">#' + m2 + '</a>';
return m1 + '<a href="https://twitter.com/hashtag/' +
m2 + '?src=hash">#' + m2 + '</a>';
}
);
};
Expand Down
7 changes: 3 additions & 4 deletions jquery.lifestream.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lifestream.jquery.json
@@ -1,6 +1,6 @@
{
"name": "lifestream",
"version": "0.5.1",
"version": "0.5.2",
"title": "jQuery Lifestream",
"description": "Show a stream of your online activity with jQuery",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/core.js
@@ -1,7 +1,7 @@
/*!
* jQuery Lifestream Plug-in
* Show a stream of your online activity
* @version 0.5.1
* @version 0.5.2
* @author Christian Vuerings et al.
* @copyright Copyright 2014, Christian Vuerings - http://denbuzze.com
* @license https://github.com/christianv/jquery-lifestream/blob/master/LICENSE MIT
Expand Down
4 changes: 2 additions & 2 deletions src/services/twitter.js
Expand Up @@ -40,8 +40,8 @@
return t.replace(
/(^|[^\w'"]+)\#([a-zA-Z0-9ÅåÄäÖöØøÆæÉéÈèÜüÊêÛûÎî_]+)/g,
function( m, m1, m2 ) {
return m1 + '<a href="http://search.twitter.com/search?q=%23' +
m2 + '">#' + m2 + '</a>';
return m1 + '<a href="https://twitter.com/hashtag/' +
m2 + '?src=hash">#' + m2 + '</a>';
}
);
};
Expand Down

0 comments on commit 7444fb0

Please sign in to comment.