diff options
author | Josh Suereth <joshua.suereth@gmail.com> | 2012-10-24 10:59:50 -0400 |
---|---|---|
committer | Josh Suereth <joshua.suereth@gmail.com> | 2012-10-30 10:44:08 -0400 |
commit | 492cbe5eec2df5d3e3a4310cf0fda5b86855299f (patch) | |
tree | 7bf9315fefbae38be990cd788fc054c2223b3383 /src | |
parent | 34d021ad2021d3dbedc8b6fe20f7f0f6d1569757 (diff) | |
download | scala-492cbe5eec2df5d3e3a4310cf0fda5b86855299f.tar.gz scala-492cbe5eec2df5d3e3a4310cf0fda5b86855299f.tar.bz2 scala-492cbe5eec2df5d3e3a4310cf0fda5b86855299f.zip |
Fixes SI-6559 - StringContext not using passed in escape function.
As reported by Curtis Stanford, with indication of what to fix. standardInterpolator was not correctly
calling the passed in process function, so raw strings were not really raw.
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/StringContext.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/StringContext.scala b/src/library/scala/StringContext.scala index fb43d56020..4078168bb3 100644 --- a/src/library/scala/StringContext.scala +++ b/src/library/scala/StringContext.scala @@ -120,7 +120,7 @@ case class StringContext(parts: String*) { val bldr = new java.lang.StringBuilder(process(pi.next())) while (ai.hasNext) { bldr append ai.next - bldr append treatEscapes(pi.next()) + bldr append process(pi.next()) } bldr.toString } |