Commit 5f270945 by Dmitri Goutnik

do not add excessive blank lines when source has Windows EOLs

parent 612b7f5a
...@@ -7,7 +7,7 @@ module AnnotateModels ...@@ -7,7 +7,7 @@ module AnnotateModels
PREFIX = "== Schema Information" PREFIX = "== Schema Information"
PREFIX_MD = "## Schema Information" PREFIX_MD = "## Schema Information"
END_MARK = "== Schema Information End" 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? # File.join for windows reverse bar compat?
# I dont use windows, can`t test # I dont use windows, can`t test
......
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