This commit is contained in:
Mirco Wittrien 2020-06-22 18:22:07 +02:00
parent 6ae51b1695
commit de6e217013
4 changed files with 6 additions and 14 deletions

View File

@ -8626,14 +8626,6 @@
opacity: 0; opacity: 0;
} }
${BDFDB.dotCN.app} {
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
}
${BDFDB.dotCN.loadingiconwrapper} { ${BDFDB.dotCN.loadingiconwrapper} {
position: absolute; position: absolute;
bottom: 0; bottom: 0;

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@ var SpellCheck = (_ => {
return class SpellCheck { return class SpellCheck {
getName () {return "SpellCheck";} getName () {return "SpellCheck";}
getVersion () {return "1.5.2";} getVersion () {return "1.5.3";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -15,7 +15,7 @@ var SpellCheck = (_ => {
constructor () { constructor () {
this.changelog = { this.changelog = {
"fixed":[["Fallback","Fixed primary language falling back to english on each start"]] "improved":[["Special Character / Symbols","If half or more of the characters in a word are symbols, the word will automatically be ignored by the dictionary check to avoid stuff like 'v1.2.3' being marked as incorrect"]]
}; };
this.patchedModules = { this.patchedModules = {
@ -385,7 +385,7 @@ var SpellCheck = (_ => {
isWordNotInDictionary (unformatedWord) { isWordNotInDictionary (unformatedWord) {
let wordLow = unformatedWord.toLowerCase(); let wordLow = unformatedWord.toLowerCase();
let wordWithoutSymbols = wordLow.replace(/[0-9\µ\@\$\£\€\¥\¢\²\³\>\<\|\,\;\.\:\-\_\#\+\*\~\?\¿\\\´\`\}\=\]\)\[\(\{\/\&\%\§\"\!\¡\^\°\n\t\r]/g, ""); let wordWithoutSymbols = wordLow.replace(/[0-9\µ\@\$\£\€\¥\¢\²\³\>\<\|\,\;\.\:\-\_\#\+\*\~\?\¿\\\´\`\}\=\]\)\[\(\{\/\&\%\§\"\!\¡\^\°\n\t\r]/g, "");
if (wordLow.indexOf("http://") != 0 && wordLow.indexOf("https://") != 0 && wordWithoutSymbols) { if (wordLow.indexOf("http://") != 0 && wordLow.indexOf("https://") != 0 && wordWithoutSymbols && wordWithoutSymbols.length > wordLow.length/2) {
let wordStartingPos = /^.{1}'/.test(wordWithoutSymbols) ? wordWithoutSymbols.split("'")[1] : ""; let wordStartingPos = /^.{1}'/.test(wordWithoutSymbols) ? wordWithoutSymbols.split("'")[1] : "";
let wordEndingPos = /'.{1}$/.test(wordWithoutSymbols) ? wordWithoutSymbols.split("'").reverse()[1] : ""; let wordEndingPos = /'.{1}$/.test(wordWithoutSymbols) ? wordWithoutSymbols.split("'").reverse()[1] : "";
for (let key in dictionaries) for (let word of BDFDB.ArrayUtils.removeCopies([wordLow, wordWithoutSymbols, wordStartingPos, wordEndingPos].filter(n => n))) { for (let key in dictionaries) for (let word of BDFDB.ArrayUtils.removeCopies([wordLow, wordWithoutSymbols, wordStartingPos, wordEndingPos].filter(n => n))) {

View File

@ -1379,10 +1379,10 @@
/* ---- 10.12. CHANGELOGMODAL ---- */ /* ---- 10.12. CHANGELOGMODAL ---- */
.improved-1F5LIN { /* modal improved category */ .improved-2jOfnH { /* modal improved category */
color: rgb(var(--vaccentcolor)); color: rgb(var(--vaccentcolor));
} }
.improved-1F5LIN:after { .improved-2jOfnH:after {
background-color: rgb(var(--vaccentcolor)); background-color: rgb(var(--vaccentcolor));
} }