From 25c6a0a2383dbd3176d9b90b1cbd1d621a9d3107 Mon Sep 17 00:00:00 2001 From: Alexander Lisianoi Date: Mon, 9 Jan 2017 20:45:30 +0400 Subject: [PATCH] Build: fix markerPattern and ticketPattern regexes in package.json 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f3d6010a7..16dc605bd 100644 --- a/package.json +++ b/package.json @@ -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? [^#])" } }