diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2017-07-09 17:43:06 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2017-07-09 17:46:46 -0600 |
| commit | c4b4d10c218093b46a8efecaf4f7969864ae3461 (patch) | |
| tree | 6919abb0a8bfac3dfdbe3833f13ca7c73d76fcc8 | |
| parent | 89480f7b0d3e5243ae9c55a44253cfc5f22279c6 (diff) | |
optimize replacement detection
| -rw-r--r-- | lib/asciidoctor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor.rb b/lib/asciidoctor.rb index c79ec4bf..b6c5e1ff 100644 --- a/lib/asciidoctor.rb +++ b/lib/asciidoctor.rb @@ -1072,7 +1072,7 @@ module Asciidoctor # Detects if text is a candidate for replacements. # - ReplaceableTextRx = /(?:[;\(']|--|\.\.\.)/ + ReplaceableTextRx = /[&']|--|\.\.\.|\([CRT]M?\)/ # Matches a whitespace delimiter, a sequence of spaces, tabs, and/or newlines. # Matches the parsing rules of %w strings in Ruby. |
