@zgeoff/chex 0.4.6 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgeoff/chex",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Run each shared docs and repo check as one subcommand, with the lefthook pre-push baseline that calls them",
5
5
  "keywords": [
6
6
  "checks",
@@ -146,7 +146,7 @@ const labelOrder: readonly string[] = ['Needs the owner', 'Later'];
146
146
  const labelLine = /^\*\*(?<label>[^*]+)\*\*:?\s*$/u;
147
147
  const bulletLine = /^[-*+]\s+/u;
148
148
  const checkboxBullet = /^[-*+]\s+\[[ xX]\]\s+\S/u;
149
- const issueEnding = /\((?:[A-Z][A-Z0-9]*-\d+|#\d+|[\w.-]+\/[\w.-]+#\d+)\)\.?$/u;
149
+ const issueEnding = /\((?:[A-Z][A-Z0-9]*-\d+|i-[1-9]\d*|#\d+|[\w.-]+\/[\w.-]+#\d+)\)\.?$/u;
150
150
 
151
151
  function collectNextStepsErrors(section: BodySection): string[] {
152
152
  const errors: string[] = [];
@@ -204,7 +204,7 @@ function collectNextStepsErrors(section: BodySection): string[] {
204
204
 
205
205
  if (group.label === 'Later' && !issueEnding.test(item.trim())) {
206
206
  errors.push(
207
- `Next steps: "${item.trim()}" under **Later** does not end with an issue ID in brackets such as (GEO-124) or (#45); file the issue and add it.`,
207
+ `Next steps: "${item.trim()}" under **Later** does not end with an issue ID in brackets such as (GEO-124), (#45) or (i-124); file the issue and add it.`,
208
208
  );
209
209
  }
210
210
  }