Update GoogleTranslateOption.plugin.js

This commit is contained in:
Mirco Wittrien 2020-03-10 16:13:37 +01:00
parent 22e6bdbfe9
commit 8cef015d40
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ var GoogleTranslateOption = (_ => {
return class GoogleTranslateOption {
getName () {return "GoogleTranslateOption";}
getVersion () {return "1.9.7";}
getVersion () {return "1.9.8";}
getAuthor () {return "DevilBro";}
@ -35,7 +35,7 @@ var GoogleTranslateOption = (_ => {
constructor () {
this.changelog = {
"fixed":[["Emojis","Emojis are now properly inserted when a message is translated"]]
"fixed":[["Emojis","Emojis are now properly inserted when a message is translated, really now"]]
};
this.patchedModules = {
@ -810,7 +810,7 @@ var GoogleTranslateOption = (_ => {
}
else {
string.split(" ").forEach(word => {
if (word.indexOf("<@!") == 0 || word.indexOf(":") == 0 || word.indexOf("<:") == 0 || word.indexOf("@") == 0 || word.indexOf("#") == 0 || (word.indexOf("!") == 0 && word.length > 1)) {
if (word.indexOf("<@!") == 0 || word.indexOf(":") == 0 || word.indexOf("<:") == 0 || word.indexOf("<a:") == 0 || word.indexOf("@") == 0 || word.indexOf("#") == 0 || (word.indexOf("!") == 0 && word.length > 1)) {
newString.push(`[/////${count}]`);
exceptions[count] = word;
count++;