Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
fix(index): Prevent stand-alone numbers in title
Browse files Browse the repository at this point in the history
The previous regex flagged a false positive with "es6" being in a title.
This commit makes the specification more specific in that numbers
standing alone with or without an hash symbol (#) cannot be used when
flanked by white space.

Closes #18
  • Loading branch information
erictleung committed Aug 29, 2017
1 parent d2d3742 commit a3f0f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = {
Write a short, imperative tense description of the change (no issue numbers)\n E.g. Change loop challenge format:
`,
validate: function(input) {
const noIssueNumbers = /#?\d+/g;
const noIssueNumbers = /\s#?\d+\s?/g;
return !noIssueNumbers.test(input);
},
filter: function(input) {
Expand Down

0 comments on commit a3f0f70

Please sign in to comment.