Skip to content

Commit 6bdaea5

Browse files
committed
Merge pull request ctran#67 from lucapette/master
fix column pattern regex
2 parents 667ab38 + 98bb7cb commit 6bdaea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/annotate/annotate_models.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def annotate_one_file(file_name, info_block, options={})
130130
old_header = old_content.match(header_pattern).to_s
131131
new_header = info_block.match(header_pattern).to_s
132132

133-
column_pattern = /^#[\t ]+\w+[\t ]+(?:(?::\w+)|(?:\([\w,]+\)(?:[\t ]+[\w ]+)?))(?:[\t ]+[\w, ]+)?$/
133+
column_pattern = /^#[\t ]+\w+[\t ]+.+$/
134134
old_columns = old_header && old_header.scan(column_pattern).sort
135135
new_columns = new_header && new_header.scan(column_pattern).sort
136136

0 commit comments

Comments
 (0)