summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-09-25 15:43:04 +0200
committerByron Jones <bjones@mozilla.com>2012-09-25 15:43:04 +0200
commitac21d130577c44f6887ae8520abac5a60aeba1b0 (patch)
tree4485b95e8c3bdbe978bccaf8229a2babb11620f7
parentaca0e1b481f402aef9593b759eea7664f410e8c1 (diff)
downloadbugzilla-ac21d130577c44f6887ae8520abac5a60aeba1b0.tar.gz
bugzilla-ac21d130577c44f6887ae8520abac5a60aeba1b0.tar.xz
Bug 791137: Last line of last file is not shown in Splinter if there is no newline at the end of the patch
-rw-r--r--extensions/Splinter/web/splinter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/Splinter/web/splinter.js b/extensions/Splinter/web/splinter.js
index 505decd47..18f445325 100644
--- a/extensions/Splinter/web/splinter.js
+++ b/extensions/Splinter/web/splinter.js
@@ -234,7 +234,7 @@ Splinter.Patch = {
FILE_START_RE : /^(?:(?:Index|index|===|RCS|diff).*\n)*\-\-\-[ \t]*(\S+).*\n\+\+\+[ \t]*(\S+).*\n(?=@@)/mg,
HUNK_START_RE : /^@@[ \t]+-(\d+),(\d+)[ \t]+\+(\d+),(\d+)[ \t]+@@(.*)\n/mg,
- HUNK_RE : /((?:[ +\\-].*\n)*)/mg,
+ HUNK_RE : /((?:[ +\\-].*(?:\n|$))*)/mg,
GIT_FILE_RE : /^diff --git a\/(\S+).*\n(?:(new|deleted) file mode \d+\n)?(?:index.*\n)?GIT binary patch\n(delta )?/mg,