You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i want to anonymize javadoc @author with a regex, but my regex @author .* fails to replace them. example:
/** a b c
* @author julius
*/
as i can see in source code, all terms are wrapped in \b tags, which fail to capture the @ character.
my workaround was to use author \w.* instead, which works well enough, but might match in places where it shouldn't.
proposed fix: don't wrap a regex in \b if it begins/ends in non-word characters?
The text was updated successfully, but these errors were encountered:
i want to anonymize javadoc @author with a regex, but my regex
@author .*
fails to replace them. example:as i can see in source code, all terms are wrapped in
\b
tags, which fail to capture the@
character.my workaround was to use
author \w.*
instead, which works well enough, but might match in places where it shouldn't.proposed fix: don't wrap a regex in \b if it begins/ends in non-word characters?
The text was updated successfully, but these errors were encountered: