@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
|
@@ -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
|
|
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)
|
|
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
|
}
|