We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 612b7f5 commit 5f27094Copy full SHA for 5f27094
lib/annotate/annotate_models.rb
100755
100644
@@ -7,7 +7,7 @@ module AnnotateModels
7
PREFIX = "== Schema Information"
8
PREFIX_MD = "## Schema Information"
9
END_MARK = "== Schema Information End"
10
- PATTERN = /^\n?# (?:#{COMPAT_PREFIX}|#{COMPAT_PREFIX_MD}).*?\n(#.*\n)*\n*/
+ PATTERN = /^\r?\n?# (?:#{COMPAT_PREFIX}|#{COMPAT_PREFIX_MD}).*?\r?\n(#.*\r?\n)*(\r?\n)*/
11
12
# File.join for windows reverse bar compat?
13
# I dont use windows, can`t test
0 commit comments