mirror of
https://github.com/LewdLeah/Auto-Cards.git
synced 2025-07-21 03:44:47 -04:00
Update library.js
This commit is contained in:
parent
c44cf67182
commit
6654f6a2b4
1 changed files with 2 additions and 2 deletions
|
@ -3341,12 +3341,12 @@ function AutoCards(inHook, inText, inStop) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
// Normalize both strings for further comparison purposes
|
// Normalize both strings for further comparison purposes
|
||||||
const [cleanA, cleanB] = [strA, strB].map(str => (str
|
const [cleanA, cleanB] = [strA, strB].map(str => limitString((str
|
||||||
.replace(/[0-9\s]/g, " ")
|
.replace(/[0-9\s]/g, " ")
|
||||||
.trim()
|
.trim()
|
||||||
.replace(/ +/g, " ")
|
.replace(/ +/g, " ")
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
));
|
), 1400));
|
||||||
if (cleanA === cleanB) {
|
if (cleanA === cleanB) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue