Showing the changes to lib (1 of 1 file). Show all
Unified · Split
| @@ -15,7 +15,7 @@ module Docs · 14 unmodified lines | ||
| 15 | 15 | |
| 16 | 16 | def other |
| 17 | 17 | css('h1').each do |node| |
| 18 | − node.content = node.content.sub!(/\A[\d\.]+/) do |str| | |
| 18 | + node.content = node.content.sub(/\A[\d\.]+/) do |str| | |
| 19 | 19 | rgx = /\A#{str}/ |
| 20 | 20 | @levelRegexp = @levelRegexp ? Regexp.union(@levelRegexp, rgx) : rgx |
| 21 | 21 | '' |