Last active
August 29, 2015 14:06
-
-
Save ryoppy/0c92c5ff3f27401915d5 to your computer and use it in GitHub Desktop.
play2 scala form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"foo" -> mapping( | |
"msg" -> text.transform[String](toLF, identity) | |
)(Foo.apply)(Foo.unapply) | |
def toLF(a: String): String = a.replaceAll("(\r\n|\r)","\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment