File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ def scan_line(line)
113113
114114 # We're looking for leading `>`'s to see if this line is part of a
115115 # quoted Fragment.
116- line_levels = line =~ /(>+)$/ ? $1 . size : 0
116+ is_quoted = !! ( line =~ /(>+)$/ )
117117
118118 # Mark the current Fragment as a signature if the current line is empty
119119 # and the Fragment starts with a common signature indicator.
@@ -128,14 +128,14 @@ def scan_line(line)
128128 # reply header also counts as part of the quoted Fragment, even though
129129 # it doesn't start with `>`.
130130 if @fragment &&
131- ( ( @fragment . quoted? != line_levels . zero? ) ||
131+ ( ( @fragment . quoted? == is_quoted ) ||
132132 ( @fragment . quoted? && quote_header? ( line ) ) )
133133 @fragment . lines << line
134134
135135 # Otherwise, finish the fragment and start a new one.
136136 else
137137 finish_fragment
138- @fragment = Fragment . new ( ! line_levels . zero? , line )
138+ @fragment = Fragment . new ( is_quoted , line )
139139 end
140140 end
141141
You can’t perform that action at this time.
0 commit comments