Open fmoraes74 opened 3 years ago
FYI, I forked and made the change on my fork:
https://github.com/fmoraes74/RegexUtil/commit/e29c499bf18741342dfc49f1ed16a20b89191d5d
Hi, feel free to make a PR to fix it :)
Will do after I confirm it works in HSTracker with the fixed package
The following lines https://github.com/bmichotte/RegexUtil/blob/master/Sources/Regex.swift#L63 through https://github.com/bmichotte/RegexUtil/blob/master/Sources/Regex.swift#L66 can be converted to
That will produce the correct output when processing a string with Unicode characters.
For example:
when processed with
.*BLOCK_START.*BlockType=(POWER|TRIGGER).*id=(\\d*).*(cardId=(\\w*)).*player=(\\d*).*Target=(.+).*SubOption=(.+)
will show theid
as5
instead of15
(and so on for the matches after it)