fix member references

This commit is contained in:
outfoxxed 2026-04-26 19:53:05 -07:00
parent 8e8f74df97
commit 70c3b059a5
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -36,7 +36,7 @@ const remarkParseAtTypes: RemarkPlugin<[]> =
) {
const node = rawNode as Md.Literal;
node.value = node.value.replace(
/@@(?<path>([A-Z]\w*\.)*([A-Z]\w*))?((?<member>[a-z]\w*)((?<function>\(\))|(?<signal>\(s\)))?)?(?=[$.,;:)\s]|$)/g,
/@@(?<path>([A-Z]\w*\.)*([A-Z]\w*))?(\.(?<member>[a-z]\w*)((?<function>\(\))|(?<signal>\(s\)))?)?(?=[$.,;:)\s]|$)/g,
(_full, ...args) => {
type Capture = {
path: string | undefined;