Closed desb42 closed 4 years ago
Thanks for the detail. Trying to finish up #721. Will work on these a little afterwards. Thanks.
Thanks for the breakdown. Very nice as always.
Agree that the match is happening when it should not. I looked at this a little last night, and couldn't figure it out. Will look at it more later today, as well as the other Luaj Regex issues.
Okay, I think I tracked down the problem. It's in luaj_xowa
within this section of code: https://github.com/gnosygnu/luaj_xowa/blob/5dae65ef59d2ff55e735fb9846054bd90b6b7430/src/core/org/luaj/vm2/lib/Match_state.java#L391
Basically, instead of src_pos < src.Len_in_data() &&
it should be src_pos >= src.Len_in_data() ||
Let me think about this some more and put in a commit tomorrow.
Thanks.
Fixed with the commit above. Added a little more documentation as well as a unit-test
Thanks as always for the report!
Actually, failed to run test. :( Moving back to in progress
Okay. Resolved issue. Similar to previous fix, but found deleted code. Tests passed. :)
Having just rebuilt enwiktionary (2020-05-01), I got three of these errors
The pages are:
It happens that
Module:jdt-translit
has a typo (but this is not the issue here) [the typo is that the tablehe_to_final
exists but there is an attempt to indexhe_to_finals
] This error should not be triggered (but it is)The lines responsible are at the bottom of the Module starting with
he_finals
is the actual concernIt seems that somehow the regex is matching (which it should not)
Taking the first page
en.wiktionary.org/wiki/суьрх
this can be boiled down to the call
export.he('суьрх' , 'jdt' , nil )