Summary: | Translation memory entries are counted as near 100% matches even if they‘re very different | ||
---|---|---|---|
Product: | [Applications] lokalize | Reporter: | Karl Ove Hufthammer <karl> |
Component: | translation memory | Assignee: | Simon Depiets <sdepiets> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aacid, fin-w, shafff |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/sdk/lokalize/-/commit/6f62af9f3243e97b8adf65eb9ceb5f03ab2c91fc | Version Fixed In: | |
Sentry Crash Report: |
Description
Karl Ove Hufthammer
2024-07-18 09:40:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/sdk/lokalize/-/merge_requests/134 Git commit 4aac9757c59109dd9953faf68c891ba53c08d2d7 by Volker Krause, on behalf of Finley Watson. Committed on 22/07/2024 at 16:14. Pushed by vkrause into branch 'master'. Add option QRegularExpression::UnanchoredWildcardConversion to addPart and delPart diff regexes They need to find unanchored matches i.e. matches beginning after, not just beginning at, the offset int given to delPart.match() and addPart.match(). This generates match percentages identical to prior to 341525d9f6e370f34e9efe0836fd24609488c61a when the bug was introduced where regexes almost never matched anything and so match percentages were always very high. M +2 -2 src/tm/jobs.cpp https://invent.kde.org/sdk/lokalize/-/commit/4aac9757c59109dd9953faf68c891ba53c08d2d7 Git commit 6f62af9f3243e97b8adf65eb9ceb5f03ab2c91fc by Volker Krause. Committed on 22/07/2024 at 16:19. Pushed by vkrause into branch 'release/24.08'. Add option QRegularExpression::UnanchoredWildcardConversion to addPart and delPart diff regexes They need to find unanchored matches i.e. matches beginning after, not just beginning at, the offset int given to delPart.match() and addPart.match(). This generates match percentages identical to prior to 341525d9f6e370f34e9efe0836fd24609488c61a when the bug was introduced where regexes almost never matched anything and so match percentages were always very high. (cherry picked from commit 4aac9757c59109dd9953faf68c891ba53c08d2d7) 7191eaf0 Add option QRegularExpression::UnanchoredWildcardConversion to addPart and delPart diff regexes Co-authored-by: Finley Watson <fin-w@tutanota.com> M +2 -2 src/tm/jobs.cpp https://invent.kde.org/sdk/lokalize/-/commit/6f62af9f3243e97b8adf65eb9ceb5f03ab2c91fc |