diff options
author | shura <shura1991@gmail.com> | 2012-08-28 06:08:02 +0300 |
---|---|---|
committer | shura <shura1991@gmail.com> | 2012-08-28 06:08:02 +0300 |
commit | c9d6e77ab9cbc9cf001ab370d4da8a7ec8f77a8d (patch) | |
tree | 309c65589185050ecdc39f07ae926679c27a928a /lib/coderay/encoders | |
parent | 9ede776bc89e90ea6689f9690ae130b16d20493c (diff) | |
download | coderay-c9d6e77ab9cbc9cf001ab370d4da8a7ec8f77a8d.tar.gz |
Update lib/coderay/encoders/html/numbering.rb
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r-- | lib/coderay/encoders/html/numbering.rb | 2 |
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| |