Skip to content

Commit

Permalink
Removed greedy replacement of .context to .context.to_sym again
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpanzer authored and abelsromero committed Dec 14, 2016
1 parent cfa602b commit a5381eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions asciidoctorj-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ jrubyPrepareGems << {
from gemFiles
eachFile {
// See https://github.com/asciidoctor/asciidoctorj/issues/497
if (it.path ==~ /gems\/asciidoctor-.+\/lib\/asciidoctor\/.*\.rb/) {
if (it.path ==~ /gems\/asciidoctor-.+\/lib\/asciidoctor\/abstract_block.rb/) {
it.filter { line ->
line.replaceAll(/\.context /, '.context.to_sym ')
.replaceAll(/\.context\)/, '.context.to_sym)')
line.replaceAll(/block.context == :section/, 'block.context.to_sym == :section')
}
}
}
Expand Down

0 comments on commit a5381eb

Please sign in to comment.