summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2016-02-10 10:57:47 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2016-02-10 10:57:47 +0000
commit4dd406dd29b166d98485a09ef25ec52867bd5530 (patch)
treef559fd8b1445c2644cb7ce3920468afa1c720a6c /lib
parent3cfb74235885faa268e4984962e36f7254478104 (diff)
Adjusted greediness of regex in http with content
It should match the next occurrence of the opening quote type, not the last.
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/protocoltest/http.rb2
1 files changed, 1 insertions, 1 deletions
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