summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshura <shura1991@gmail.com>2012-08-28 06:08:02 +0300
committershura <shura1991@gmail.com>2012-08-28 06:08:02 +0300
commitc9d6e77ab9cbc9cf001ab370d4da8a7ec8f77a8d (patch)
tree309c65589185050ecdc39f07ae926679c27a928a
parent9ede776bc89e90ea6689f9690ae130b16d20493c (diff)
downloadcoderay-c9d6e77ab9cbc9cf001ab370d4da8a7ec8f77a8d.tar.gz
Update lib/coderay/encoders/html/numbering.rb
-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|