Skip to content

Commit

Permalink
Build: fix markerPattern and ticketPattern regexes in package.json
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Alexander Lisianoi authored and timmywil committed Jan 9, 2017
1 parent a8816ca commit 25c6a0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -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? [^#])"
}
}

0 comments on commit 25c6a0a

Please sign in to comment.