Commit b56edbf0 authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Expand block_start? definition to include comment

parent 1a46d2f3
......@@ -117,7 +117,7 @@ module RuboCop
end
def block_start?(line)
line.match(/ (do|{)( \|.*?\|)?\s?$/)
line.match(/ (do|{)( \|.*?\|)?\s?(#.+)?\z/)
end
def end_line?(line)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment