summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-03-15 19:04:05 -0600
committerDan Allen <dan.j.allen@gmail.com>2019-03-15 19:04:05 -0600
commit978eaefa5297014425dc90985c875ad9fbb0cd03 (patch)
treef0dddbfb4ee1fd446baea625b9655e6e7d6fe97a
parentb835139cf3f1bd6afc9b229818c19f52a75ef2f6 (diff)
use concatenation instead of interpolation in a few more places
-rw-r--r--lib/asciidoctor/substitutors.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/asciidoctor/substitutors.rb b/lib/asciidoctor/substitutors.rb
index f311ba0c..103a5279 100644
--- a/lib/asciidoctor/substitutors.rb
+++ b/lib/asciidoctor/substitutors.rb
@@ -509,7 +509,7 @@ module Substitutors
# NOTE handle special case where keys ends with delimiter (e.g., Ctrl++ or Ctrl,,)
if keys.end_with? delim
keys = (keys.chop.split delim, -1).map {|key| key.strip }
- keys[-1] = %(#{keys[-1]}#{delim})
+ keys[-1] += delim
else
keys = keys.split(delim).map {|key| key.strip }
end
@@ -778,8 +778,7 @@ module Substitutors
if $&.start_with? RS
next $&.slice 1, $&.length
elsif (mailto = $1)
- target = %(mailto:#{$2})
- mailto_text = $2
+ target = 'mailto:' + (mailto_text = $2)
else
target = $2
end
@@ -854,7 +853,7 @@ module Substitutors
# honor the escape
next $1 == RS ? ($&.slice 1, $&.length) : $& if $1
- target = %(mailto:#{$&})
+ target = 'mailto:' + $&
# QUESTION should this be registered as an e-mail address?
doc.register(:links, target)