removes superfluous regexp group

This commit is contained in:
Xavier Noria 2014-12-23 23:51:38 +01:00
parent 7702974281
commit 6dd4c04b71
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ HTML
end
def paragraph(text)
if text =~ /^(TIP|IMPORTANT|CAUTION|WARNING|NOTE|INFO|TODO)[.:](.*?)/
if text =~ /^(TIP|IMPORTANT|CAUTION|WARNING|NOTE|INFO|TODO)[.:]/
convert_notes(text)
elsif text.include?('DO NOT READ THIS FILE IN GITHUB')
elsif text =~ /^\[<sup>(\d+)\]:<\/sup> (.+)$/