Regex split

This commit is contained in:
Jiiks 2015-11-12 14:31:52 +02:00
parent 62e3eb1adb
commit 6a09a7d6ca
3 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ EmoteModule.prototype.injectEmote = function(node) {
if(parent.tagName != "SPAN") return;
var parentInnerHTML = parent.innerHTML;
var words = parentInnerHTML.split(" ");
var words = parentInnerHTML.split(/\s+/g);
if(!words) return;

View File

@ -232,7 +232,7 @@ EmoteModule.prototype.injectEmote = function(node) {
if(parent.tagName != "SPAN") return;
var parentInnerHTML = parent.innerHTML;
var words = parentInnerHTML.split(" ");
var words = parentInnerHTML.split(/\s+/g);
if(!words) return;

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long