Skip to content

Commit c36357c

Browse files
committed
fixup!
1 parent c6eb43b commit c36357c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/utils/parser/constants.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// This is the base URL of the MDN Web documentation
44
export const DOC_MDN_BASE_URL = 'https://developer.mozilla.org/en-US/docs/Web/';
55

6-
// The is the base URL of the Man7 documentation
6+
// This is the base URL of the Man7 documentation
77
export const DOC_MAN_BASE_URL = 'http://man7.org/linux/man-pages/man';
88

99
// This is the base URL for the MDN JavaScript documentation

src/utils/parser/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const transformUnixManualToLink = (
5555
text,
5656
command,
5757
sectionNumber,
58-
sectionLetter
58+
sectionLetter = ''
5959
) => {
6060
return `[\`${text}\`](${DOC_MAN_BASE_URL}${sectionNumber}/${command}.${sectionNumber}${sectionLetter}.html)`;
6161
};

src/utils/queries/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ createQueries.QUERIES = {
208208
stabilityIndexPrefix: /Stability: ([0-5])/,
209209
// ReGeX for retrieving the inner content from a YAML block
210210
yamlInnerContent: /^<!--[ ]?(?:YAML([\s\S]*?)|([ \S]*?))?[ ]?-->/,
211-
// RegEX for finding references to Unix manuals
212-
unixManualPage: /\b([a-z.]+)\((\d)([a-z]?)\)/gm,
211+
// ReGeX for finding references to Unix manuals
212+
unixManualPage: /\b([a-z.]+)\((\d)([a-z]?)\)/g,
213213
};
214214

215215
createQueries.UNIST = {

0 commit comments

Comments
 (0)