Skip to content

Commit

Permalink
Merge pull request #237 from syreclabs/develop
Browse files Browse the repository at this point in the history
Do not add excessive blank lines when source has Windows EOLs
  • Loading branch information
ctran committed Mar 16, 2015
2 parents 612b7f5 + 5f27094 commit f3d9ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/annotate/annotate_models.rb
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module AnnotateModels
PREFIX = "== Schema Information"
PREFIX_MD = "## Schema Information"
END_MARK = "== Schema Information End"
PATTERN = /^\n?# (?:#{COMPAT_PREFIX}|#{COMPAT_PREFIX_MD}).*?\n(#.*\n)*\n*/
PATTERN = /^\r?\n?# (?:#{COMPAT_PREFIX}|#{COMPAT_PREFIX_MD}).*?\r?\n(#.*\r?\n)*(\r?\n)*/

# File.join for windows reverse bar compat?
# I dont use windows, can`t test
Expand Down

0 comments on commit f3d9ad5

Please sign in to comment.