Skip to content

Commit 4bdf65d

Browse files
committed
Fix lint error
1 parent 844edf5 commit 4bdf65d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/dotenv/parser.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class Parser
3333
(?:$|\z) # end of line
3434
/x
3535

36+
QUOTED_STRING = /\A(['"])(.*)\1\z/m
37+
3638
class << self
3739
attr_reader :substitutions
3840

@@ -75,7 +77,6 @@ def existing?(key)
7577
!@overwrite && key != "DOTENV_LINEBREAK_MODE" && ENV.key?(key)
7678
end
7779

78-
QUOTED_STRING = /\A(['"])(.*)\1\z/m
7980
def parse_value(value)
8081
# Remove surrounding quotes
8182
value = value.strip.sub(QUOTED_STRING, '\2')

0 commit comments

Comments
 (0)