Skip to content

Entity Footnotes patch v1.0.6

Choose a tag to compare

@Dukko Dukko released this 09 Aug 21:55
· 2 commits to main since this release

Fixes the 0-entities-found bug. The new checkRegex diagnostic from v1.0.5 returned error code 102 (error_escape in crengine's own error table) - an invalid escape sequence. escape_pattern was backslash-escaping "-" and "%", neither of which is special in ECMAScript regex outside a character class; "%" specifically isn't a recognized escape and made the whole search engine (SRELL) reject the pattern, silently returning zero hits for that entity category. With 84 glossary "term" entries in the test book, a hyphen or percent sign somewhere in there was very plausible.

Restricted escaping to the actual ECMAScript special characters. Verified the fix against sample inputs (including a term with a percent sign and one with a hyphen) in an isolated sandbox before shipping.

If this still doesn't find anything, the scan failure log now includes the full pattern text, not just its length - please share that line from crash.log if so.