obsidiantools
obsidiantools copied to clipboard
filter out URLs before finding hashtags
Update of earlier PR: https://github.com/mfarragher/obsidiantools/pull/38
why
Because URLs can have # in them, components of URLs were getting pulled in as tags
what changes
- new constant to make it possible to identify URLs with regex
- update
get_tagsto pull URLs out of the note text before extracting tags - add URL with
#in it to the test md that's used to testget_tags - add test for URL removal method