obsidiantools icon indicating copy to clipboard operation
obsidiantools copied to clipboard

filter out URLs before finding hashtags

Open mfarragher opened this issue 7 months ago • 0 comments

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_tags to pull URLs out of the note text before extracting tags
  • add URL with # in it to the test md that's used to test get_tags
  • add test for URL removal method

mfarragher avatar Jul 08 '25 18:07 mfarragher