Added regex sub rule for String.format - #18
Conversation
|
I'm fine with this, but it's going to have to get rewritten as an AST transformation. We just got bit by a bug where the regex didn't replace .length() properly when used inside an expression, and this might have similar problems. Also, |
Added regex sub rule for String.format
"{1:d}".format() does though |
|
Great. I'm investigating this correspondence. Pretty hairy it seems. |
|
Would be great if you guys could find some time to review commit 6a8ded2 (And please suggest a better place for the helper func. |
Added a new output substitution regex rule to handle
String.format.Turns this:
into this:
Does not handle the whole Java specs about
Formatter, like%1$dTest case added.