From 4dd406dd29b166d98485a09ef25ec52867bd5530 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 10 Feb 2016 10:57:47 +0000 Subject: Adjusted greediness of regex in http with content It should match the next occurrence of the opening quote type, not the last. --- lib/custodian/protocoltest/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian') diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb index 3bc4b05..05e71ae 100644 --- a/lib/custodian/protocoltest/http.rb +++ b/lib/custodian/protocoltest/http.rb @@ -114,7 +114,7 @@ module Custodian # # The content we expect to find # - if line =~ /with content (["'])(.*)\1/ + if line =~ /with content (["'])(.*?)\1/ @expected_content = $2.dup else @expected_content = nil -- cgit v1.2.1