Regex split
This commit is contained in:
parent
62e3eb1adb
commit
6a09a7d6ca
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue