]> source.dussan.org Git - jquery.git/commitdiff
Build: fix markerPattern and ticketPattern regexes in package.json
authorAlexander Lisianoi <all3fox@gmail.com>
Mon, 9 Jan 2017 16:45:30 +0000 (20:45 +0400)
committerTimmy Willison <4timmywil@gmail.com>
Mon, 9 Jan 2017 16:45:30 +0000 (11:45 -0500)
Commit messages used to fail the style check if they contained a word
starting with "ref", like reformat or reference, in their message body.

Close gh-3437
Ref jzaefferer/commitplease#91

package.json

index f3d6010a7a686870e6bfa24e10332af94addfd46..16dc605bd46d67eaf40cf0c399f518911b4c01e6 100644 (file)
@@ -91,7 +91,7 @@
       "Traversing",
       "Wrap"
     ],
-    "markerPattern": "^((clos|fix|resolv)(e[sd]|ing))|(refs?)",
-    "ticketPattern": "^((Closes|Fixes) ([a-zA-Z]{2,}-)[0-9]+)|(Refs? [^#])"
+    "markerPattern": "^((clos|fix|resolv)(e[sd]|ing))|^(refs?)",
+    "ticketPattern": "^((Closes|Fixes) ([a-zA-Z]{2,}-)[0-9]+)|^(Refs? [^#])"
   }
 }