(linkText: string)
| 4 | const tasknotesLogger = createTaskNotesLogger({ tag: "Utils/LinkUtils" }); |
| 5 | |
| 6 | function parseLinkPath(linkText: string): string { |
| 7 | const subpathIndex = linkText.search(/[#^]/); |
| 8 | const path = subpathIndex === -1 ? linkText : linkText.slice(0, subpathIndex); |
| 9 | return path.trim(); |
| 10 | } |
| 11 | |
| 12 | /** |
| 13 | * Parse a link string (wikilink or markdown) to extract the path. |
no outgoing calls
no test coverage detected