Skip to content

Commit ee35904

Browse files
committed
fixup!
1 parent 6bc3f1e commit ee35904

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/generators/metadata/utils/parse.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
} from '../../../utils/queries/unist.mjs';
2121
import { getRemark } from '../../../utils/remark.mjs';
2222

23-
/**x
23+
/**
2424
* This generator generates a flattened list of metadata entries from a API doc
2525
*
2626
* @param {ParserOutput<import('mdast').Root>} input

src/utils/queries/regex.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const CAMEL_CASE = '\\w+(?:\\.\\w+)*';
22
const FUNCTION_CALL = '\\([^)]*\\)';
3-
const PROPERTY = `?${CAMEL_CASE}(?:(\\[\\w+\\.\\w+\\])|\\.(\\w+))`;
3+
const PROPERTY = `${CAMEL_CASE}(?:(\\[\\w+\\.\\w+\\])|\\.(\\w+))`;
44

55
/**
66
* Matches class headings like `Class: SomeClass` or `Class: SomeClass extends BaseClass`
@@ -30,7 +30,7 @@ export const CTOR_HEADING = new RegExp(
3030
* Matches class property headings like `Class property: SomeClass.prop` or `SomeClass[foo.bar]`
3131
*/
3232
export const PROPERTY_HEADING = new RegExp(
33-
`^(?:Class property: +)?\`${PROPERTY}\`?$`,
33+
`^(?:Class property: +)?\`?${PROPERTY}\`?$`,
3434
'i'
3535
);
3636

0 commit comments

Comments
 (0)