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 ...@@ -117,7 +117,7 @@ module RuboCop
end end
def block_start?(line) def block_start?(line)
line.match(/ (do|{)( \|.*?\|)?\s?$/) line.match(/ (do|{)( \|.*?\|)?\s?(#.+)?\z/)
end end
def end_line?(line) 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