Skip to content

Commit 0e44601

Browse files
avivkellerCopilot
andauthored
Update src/utils/parser/constants.mjs
Co-authored-by: Copilot <[email protected]>
1 parent 0ed48d3 commit 0e44601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/parser/constants.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const PROPERTY = `${CAMEL_CASE}(?:(\\[${CAMEL_CASE}\\])|\\.(\\w+))`;
2929
export const DOC_API_HEADING_TYPES = [
3030
{
3131
type: 'method',
32-
regex: new RegExp(`^\`${PROPERTY}${FUNCTION_CALL}\`?$`, 'i'),
32+
regex: new RegExp(`^\`?${PROPERTY}${FUNCTION_CALL}\`?$`, 'i'),
3333
},
3434
{ type: 'event', regex: /^Event: +`?['"]?([^'"]+)['"]?`?$/i },
3535
{

0 commit comments

Comments
 (0)