Fix regex to actually work again. No more trailing space.
authorShawn Wilsher <me@shawnwilsher.com>
Wed, 25 Nov 2009 16:53:13 -0800
changeset 36 8b728f2e281f0d74486ae935ccc63f94fc3f8e8a
parent 35 352894da53a13995160d03e5216f202a6822c48d
child 37 684748bcf7e2241c531302e0bf0a6548c85b8efe
push id20
push usersdwilsh@shawnwilsher.com
push dateThu, 26 Nov 2009 01:56:25 +0000
Fix regex to actually work again. No more trailing space.
content/overlay.js
--- a/content/overlay.js
+++ b/content/overlay.js
@@ -1,16 +1,16 @@
 var BugzillaReply = {
   //////////////////////////////////////////////////////////////////////////////
   //// Constants
 
   kFromAddress: "bugzilla-daemon@mozilla.org",
   kSubjectRegEx: /^\[Bug \d+\]/,
   kBugURIRegEx: /^https:\/\/bugzilla.mozilla.org\/show_bug.cgi\?id=(\d+)/,
-  kCommentStartRegEx: /^-{3,7} Comment #(\d+) from .+ -{3,7}\s+$/,
+  kCommentStartRegEx: /^--- Comment #(\d+) from .+ ---$/,
   kCommentEndRegEx: /^--\s+$/,
 
   //////////////////////////////////////////////////////////////////////////////
   //// Functions
 
   initialize: function BR_initialize()
   {
     const REPLACE_FUNCTIONS = [