Skip to content

Commit

Permalink
fix column pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
lucapette committed Dec 23, 2011
1 parent 667ab38 commit 98bb7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/annotate/annotate_models.rb
Expand Up @@ -130,7 +130,7 @@ def annotate_one_file(file_name, info_block, options={})
old_header = old_content.match(header_pattern).to_s
new_header = info_block.match(header_pattern).to_s

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

Expand Down

0 comments on commit 98bb7cb

Please sign in to comment.