Skip to content

filter out URLs before finding hashtags#49

Draft
mfarragher wants to merge 5 commits intodevfrom
emilypastewka/feature/get_tags_ignore_pound_signs_in_urls
Draft

filter out URLs before finding hashtags#49
mfarragher wants to merge 5 commits intodevfrom
emilypastewka/feature/get_tags_ignore_pound_signs_in_urls

Conversation

@mfarragher
Copy link
Owner

@mfarragher mfarragher commented Jul 8, 2025

Update of earlier PR: #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 mfarragher changed the title Emilypastewka/feature/get tags ignore pound signs in urls filter out URLs before finding hashtags Jul 8, 2025
@mfarragher mfarragher added the enhancement New feature or request label Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants