lib/qonfig/commands/definition/load_from_env.rb in qonfig-0.25.0 vs lib/qonfig/commands/definition/load_from_env.rb in qonfig-0.26.0
- old
+ new
@@ -53,9 +53,11 @@
end
@convert_values = convert_values
@prefix_pattern = prefix.is_a?(Regexp) ? prefix : /\A#{Regexp.escape(prefix.to_s)}.*\z/m
@trim_prefix = trim_prefix
+
+ # TODO: mb trim_prefix ?
@trim_pattern = prefix.is_a?(Regexp) ? prefix : /\A(#{Regexp.escape(prefix.to_s)})/m
end
# @param data_set [Qonfig::DataSet]
# @param settings [Qonfig::Settings]