Skip to content

filter out URLs before finding hashtags#38

Closed
emilypastewka wants to merge 2 commits intomfarragher:devfrom
emilypastewka:feature/get_tags_ignore_pound_signs_in_urls
Closed

filter out URLs before finding hashtags#38
emilypastewka wants to merge 2 commits intomfarragher:devfrom
emilypastewka:feature/get_tags_ignore_pound_signs_in_urls

Conversation

@emilypastewka
Copy link

@emilypastewka emilypastewka commented Nov 8, 2023

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 added enhancement New feature or request labels Jun 25, 2025
@mfarragher mfarragher changed the base branch from main to dev July 8, 2025 18:08
@mfarragher
Copy link
Owner

@emilypastewka I've take your commits from this PR and brought in the latest changes from the dev branch into a new PR: #49.

I'm not sure why but there are a few tests failing. I'll close this PR but do continue any changes in that newer PR. 👍

@mfarragher mfarragher closed this 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