summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders/html
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2012-10-29 02:46:46 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2012-10-29 02:46:46 +0100
commitf0ab3fbf7fcea91ecc65d3bc9d2662642f19b332 (patch)
treee4e46f112dd99258b18b0819fa87a9ecbc3a83c4 /lib/coderay/encoders/html
parent11807f130e745e414d8910423a3257832347d237 (diff)
parentcab119c814b3470a7dd3e8079df0d95f9151da42 (diff)
downloadcoderay-f0ab3fbf7fcea91ecc65d3bc9d2662642f19b332.tar.gz
Merge branch 'master' into bash-scanner
Diffstat (limited to 'lib/coderay/encoders/html')
-rw-r--r--lib/coderay/encoders/html/numbering.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/encoders/html/numbering.rb b/lib/coderay/encoders/html/numbering.rb
index 8bc6259..e717429 100644
--- a/lib/coderay/encoders/html/numbering.rb
+++ b/lib/coderay/encoders/html/numbering.rb
@@ -17,7 +17,7 @@ module Encoders
anchor_prefix = options[:line_number_anchors]
anchor_prefix = 'line' if anchor_prefix == true
- anchor_prefix = anchor_prefix.to_s[/\w+/] if anchor_prefix
+ anchor_prefix = anchor_prefix.to_s[/[\w-]+/] if anchor_prefix
anchoring =
if anchor_prefix
proc do |line|