mirror of
https://github.com/LewdLeah/Auto-Cards.git
synced 2025-07-19 10:44:46 -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;
|
||||
}
|
||||
// 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, " ")
|
||||
.trim()
|
||||
.replace(/ +/g, " ")
|
||||
.toLowerCase()
|
||||
));
|
||||
), 1400));
|
||||
if (cleanA === cleanB) {
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue