src/main/scala/s3/website/Ruby.scala in s3_website-2.8.3 vs src/main/scala/s3/website/Ruby.scala in s3_website-2.8.4
- old
+ new
@@ -4,10 +4,10 @@
lazy val rubyRuntime = org.jruby.Ruby.newInstance() // Instantiate heavy object
def rubyRegexMatches(text: String, regex: String) = {
val z = rubyRuntime.evalScriptlet(
s"""# encoding: utf-8
- !!Regexp.new('$regex').match('$text')"""
+ !!Regexp.new("$regex").match("$text")"""
)
z.toJava(classOf[Boolean]).asInstanceOf[Boolean]
}
}