From 044e2e4ffa11bdc792abdac7748dffe02a532122 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 9 May 2013 17:26:10 +0800 Subject: Bug 815531: splinter fails to display attachment 681995 correctly --- extensions/Splinter/web/splinter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/Splinter') diff --git a/extensions/Splinter/web/splinter.js b/extensions/Splinter/web/splinter.js index 368bd74dc..52d54b82e 100644 --- a/extensions/Splinter/web/splinter.js +++ b/extensions/Splinter/web/splinter.js @@ -244,7 +244,7 @@ Splinter.Patch = { 'mg' ), HUNK_START_RE : /^@@[ \t]+-(\d+),(\d+)[ \t]+\+(\d+),(\d+)[ \t]+@@(.*)\n/mg, - HUNK_RE : /((?:[ +\\-].*(?:\n|$))*)/mg, + HUNK_RE : /((?:(?!---)[ +\\-].*(?:\n|$))*)/mg, GIT_BINARY_RE : /^diff --git a\/(\S+).*\n(?:(new|deleted) file mode \d+\n)?(?:index.*\n)?GIT binary patch\n(delta )?/mg, -- cgit v1.2.3-24-g4f1b