diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2012-10-11 02:23:49 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2012-10-11 02:23:49 +0200 |
commit | 43ad09c3474b5ff366398c0e2454bacf9e39d394 (patch) | |
tree | 12c90b3f59dedd0cbfacb00f668c03f550acc563 /lib/coderay/encoders | |
parent | 1f88ad0c81707c5419e93141d5acddd842f8afe7 (diff) | |
parent | 3effca8291ed4941f7b3a1c2088b50274f28aa6f (diff) | |
download | coderay-43ad09c3474b5ff366398c0e2454bacf9e39d394.tar.gz |
Merge branch 'master' into multiline-inline-diff
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| |