co-maintainer 0.7.1-beta.1 → 0.7.1
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/dist/package.json
CHANGED
|
@@ -10,10 +10,11 @@ import { DETAILED_GUIDE_FILE, GUIDE_FILE } from "./rules.js";
|
|
|
10
10
|
* end of the line, after a space. `items[3]` has no space before it, so it is
|
|
11
11
|
* never taken. */
|
|
12
12
|
const SOURCE_BRACKET = /\s+\[\s*(\d+(?:\s*,\s*\d+)*)\s*\]\s*$/;
|
|
13
|
-
/** A top-level `rule · why` bullet, the guide's unit of a check.
|
|
14
|
-
* the detailed file is
|
|
13
|
+
/** A top-level `rule · why` bullet, the guide's unit of a check. A check may
|
|
14
|
+
* hold a Markdown link. The link to the detailed file is a plain line, and it
|
|
15
|
+
* carries no source list, so it is never rewritten. */
|
|
15
16
|
function isCheckLine(line) {
|
|
16
|
-
return line.startsWith("- ") && line.includes(" · ")
|
|
17
|
+
return line.startsWith("- ") && line.includes(" · ");
|
|
17
18
|
}
|
|
18
19
|
/** The finding numbers at the end of a check line and the line without them,
|
|
19
20
|
* or `null` when the line does not end in a source list. A bracket inside
|