obsidiantools icon indicating copy to clipboard operation
obsidiantools copied to clipboard

filter out URLs before finding hashtags

Open emilypastewka opened this issue 1 year ago • 0 comments

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

emilypastewka avatar Nov 08 '23 03:11 emilypastewka