Only fix up doc for JRuby (MRI 1.8 couldn't handle the regexes)