projectAnonymizer bug

Hi,

when using projectAnonymizer with some strings there is a bug that where does not replace the strings as it should but mixes them around instead and partly even duplicates part of the string and leaves it unchanged for 1 copy of it.

There is no difference whether to use a complex rule to catch all the strings to be converted or multiple smaller rules to catch them one by one. So I either leave these rules out or rearrange strings in Notepad++ manually...

 

Rules applied:

for seg 3 and 5:

{\d, date, long}|((\()?{[0-9], plural, (=1|one|other) {(#|[0-9])?)|(} other(\s)?{(#(\s)?)?)|(}}(\))?)

for seg 66:

({\d, select, (WITH_NAME|ADMIN){({\d})?)|(} other{)|(({{|{)(?!(font|page|credit)(s)?)((#)?\d+|[a-zA-Z]+((\s|_)[a-zA-Z]+)*))?(}}|})|(}}|})

 

Starting point:

 

Result:

 

I guess you can see what went wrong. Maybe the devs can find out why it ran wrong.

I'm setting up my regex expressions with RegexBuddy before entering them into projectAnonymizer and I also found out that projectAnonymizer sometimes seems to handle the rules differently.

 

regards,

Pascal

Parents Reply Children
No Data