Permalink
Browse files

remove space split

  • Loading branch information...
1 parent 98f8a18 commit 9b149d63596349b66ac69374b45b5174ed4a9ed6 @kyupark committed Sep 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lucky.js
View
@@ -1,11 +1,11 @@
$(document).ready(function() {
$('em').each(function() {
- var text = String($(this).text()).split(' ').split('-').join('+');
+ var text = String($(this).text()).split('-').join('+');
var url = 'http://www.google.com/search?btnI&q=site:youtube.com+' + text;
$(this).html('<a href="' + url + '">' + $(this).text() + '</a>');
});
$('strong').each(function() {
- var text = String($(this).text()).split(' ').split('-').join('+');
+ var text = String($(this).text()).split('-').join('+');
var url = 'http://www.google.com/search?btnI&q=' + text;
$(this).html('<a href="' + url + '">' + $(this).text() + '</a>');
});

0 comments on commit 9b149d6

Please sign in to comment.