Skip to content

Commit

Permalink
Merge pull request #23 from tanainc/sh/parseAttrs
Browse files Browse the repository at this point in the history
More correct test for attr
  • Loading branch information
houshuang committed Feb 26, 2024
2 parents 65920f1 + 474cbca commit 7ddb9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converters/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function getValueForAttribute(fieldName: string, node: string): string |
// foo::bar
if (line.startsWith(`${fieldName}::`)) {
return line.split(`${fieldName}::`)[1].trim();
} else if (line.startsWith(`[[${fieldName}]]:`)) {
} else if (line.startsWith(`[[${fieldName}]]::`)) {
return line.split(`[[${fieldName}]]::`)[1].trim();
}
}
Expand Down

0 comments on commit 7ddb9b3

Please sign in to comment.