From 698daecf0e2c7d752aad2ca1427a02ef31f5896a Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Mon, 13 Jul 2009 23:59:09 -0500 Subject: [PATCH] Maruku "Email" Header Detection The Regexp, used in Maruku to detect "email" headers (used, e.g., for S5 slideshow metadata) could, for some inputs, interact badly with Instiki's Chunk Handler. Fixed. --- vendor/plugins/maruku/lib/maruku/string_utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/plugins/maruku/lib/maruku/string_utils.rb b/vendor/plugins/maruku/lib/maruku/string_utils.rb index d297cd43..e58f715a 100644 --- a/vendor/plugins/maruku/lib/maruku/string_utils.rb +++ b/vendor/plugins/maruku/lib/maruku/string_utils.rb @@ -46,7 +46,7 @@ module MaRuKu; module Strings # def parse_email_headers(s) keys={} - match = (s =~ /\A((\w[\w\s\_\-]+: .*\n)+)\s*\n/) + match = (s =~ /\A((\w[\w \t\_\-]+: .*?\n)+)\s*?\n/) if match != 0 keys[:data] = s else