I'm working on CrazyText and in order for the styles to work, I created this segment of code for EACH style:
code:
if(style===0){
Message=Message.split(" ");
for(s in Message){
if(isURL(Message[s])==false && isEmote(Message[s])==false){
Message[s] = Message[s].replace(/a/gi,"α");
...
...
}
}
Message=Message.join(" ");
return Message;
}
That works fine for one style (the first), but the others get an error (on the line where the first replace takes place). I have noticed with the other styles that the font is actual changed inside the script editor...
Is it possible that the style is causing an error running the script as all the "segments" are identical to that above except with different style numbers and replacement letters
EDIT: Added thread title