Update library.js

This commit is contained in:
LewdLeah 2025-07-14 13:44:39 -04:00 committed by GitHub
parent 994859e96e
commit ff1d7e590c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6343,12 +6343,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;
}