In a search and replace operation it seems the capturing doesn't work as expected.
For example, given a segment containing a figure such as "10 000", I want to remove the space.
I search for (\d)\s(\d) and replace with $1$2.
The expected result is 10000.
The actual result is 10 00.
It seems the second capturing group is capturing the space.
It seems the issue happen when you check the "Space matches nbsp" option. But even then, not systematically.
When replacing text with the "Space matches nbsp" option checked, all the "
" in the search were replaced by "( |\u00A0)". This resulted in bad capturing groups for the users.The space is now replaced by "
(?: |\u00A0)" to avoid saving the capturing group.This should be fixed in [30bd7c].
Related
Commit: [30bd7c]
Thanks, Briac!
Diff:
Diff:
Please attach screenshots directly to the ticket, rather than hosting them elsewhere. That way we will still be able to understand the issue when the external host goes out of business or breaks their URLs or someone deletes the hosted image.
Released in 4.3.0.
The same (or similar) issue occurs again in version 6.0.1. See:
https://sourceforge.net/p/omegat/bugs/1330/