We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31efb9d commit 0bf7155Copy full SHA for 0bf7155
1 file changed
lib/docs/filters/python/clean_html.rb
@@ -15,7 +15,7 @@ def root
15
16
def other
17
css('h1').each do |node|
18
- node.content = node.content.sub!(/\A[\d\.]+/) do |str|
+ node.content = node.content.sub(/\A[\d\.]+/) do |str|
19
rgx = /\A#{str}/
20
@levelRegexp = @levelRegexp ? Regexp.union(@levelRegexp, rgx) : rgx
21
''
0 commit comments