Skip to content

Commit c9d6e77

Browse files
committed
Update lib/coderay/encoders/html/numbering.rb
1 parent 9ede776 commit c9d6e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coderay/encoders/html/numbering.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def self.number! output, mode = :table, options = {}
1717

1818
anchor_prefix = options[:line_number_anchors]
1919
anchor_prefix = 'line' if anchor_prefix == true
20-
anchor_prefix = anchor_prefix.to_s[/\w+/] if anchor_prefix
20+
anchor_prefix = anchor_prefix.to_s[/[\w-]+/] if anchor_prefix
2121
anchoring =
2222
if anchor_prefix
2323
proc do |line|

0 commit comments

Comments
 (0)