Permalink
Browse files

Lets ignore non-breaking space

  • Loading branch information...
1 parent 541eb50 commit e6c84ba375e3daa04abb4798675e552958dfd406 @CrazyLemon CrazyLemon committed with dz0ny Feb 12, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/url.coffee
View
@@ -9,7 +9,7 @@ module.exports = (bot) ->
bot.fetchHTML url, ($)->
if $
stack = []
- stack.push $("title").text().replace(/\s\s+/g, "")
+ stack.push $("title").text().replace(/\s\s+/g, "").replace(/ /g,'')
opis = $("meta[name=description]").attr("content")
if opis
stack.push opis.replace(/\s\s+/g, "")

0 comments on commit e6c84ba

Please sign in to comment.