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 844edf5 commit 4bdf65dCopy full SHA for 4bdf65d
lib/dotenv/parser.rb
@@ -33,6 +33,8 @@ class Parser
33
(?:$|\z) # end of line
34
/x
35
36
+ QUOTED_STRING = /\A(['"])(.*)\1\z/m
37
+
38
class << self
39
attr_reader :substitutions
40
@@ -75,7 +77,6 @@ def existing?(key)
75
77
!@overwrite && key != "DOTENV_LINEBREAK_MODE" && ENV.key?(key)
76
78
end
79
- QUOTED_STRING = /\A(['"])(.*)\1\z/m
80
def parse_value(value)
81
# Remove surrounding quotes
82
value = value.strip.sub(QUOTED_STRING, '\2')
0 commit comments