summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-03-14 22:25:31 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-03-14 22:25:33 +0900
commite9bb8a1379dc727dc29afd4446cd728e9643e312 (patch)
treebd08ff2861461734bea7898a9269f26ddadb11ca
parentb65b0753de844f33a03ebfcc7ef490856f5a72e3 (diff)
downloadbundler-e9bb8a1379dc727dc29afd4446cd728e9643e312.tar.gz
Strip unknown regexp option line from error format
-rw-r--r--lib/bundler/dsl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index d16a50cb7e..7424a5c8a4 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -582,7 +582,7 @@ The :#{name} git source is deprecated, and will be removed in the future.#{addit
description = self.description
if dsl_path && description =~ /((#{Regexp.quote File.expand_path(dsl_path)}|#{Regexp.quote dsl_path.to_s}):\d+)/
trace_line = Regexp.last_match[1]
- description = description.sub(/#{Regexp.quote trace_line}:\s*/, "").sub("\n", " - ")
+ description = description.sub(/\n.*\n(\.\.\.)? *\^~+$/, "").sub(/#{Regexp.quote trace_line}:\s*/, "").sub("\n", " - ")
end
[trace_line, description]
end