Skip to content

fix(brkn.bio): update regex#10854

Open
GustavoSilvadeCarvalho wants to merge 1 commit into
PreMiD:mainfrom
GustavoSilvadeCarvalho:patch-1
Open

fix(brkn.bio): update regex#10854
GustavoSilvadeCarvalho wants to merge 1 commit into
PreMiD:mainfrom
GustavoSilvadeCarvalho:patch-1

Conversation

@GustavoSilvadeCarvalho
Copy link
Copy Markdown
Contributor

Description

Fix regexp to support www.brkn.bio URLs.

The website redirects users from brkn.bio to www.brkn.bio, but the previous regexp only matched non-www URLs, preventing the Presence from initializing correctly.

Acknowledgements

  • I read the Activity Guidelines
  • I linted the code by running npm run lint
  • The PR title follows the repo's commit conventions

Screenshots

Proof showing the modification is working as expected

N/A — small regexp fix.

Signed-off-by: Gustavo Silva <126930154+GustavoSilvadeCarvalho@users.noreply.github.com>
},
"url": "brkn.bio",
"regExp": "^https?[:][/][/]brkn[.]bio[/]",
"regExp": "^https?://(www\\.)?brkn\\.bio/"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"regExp": "^https?://(www\\.)?brkn\\.bio/"
"regExp": "^https?[:][/][/](www[.])?brkn[.]bio[/]"

Copy link
Copy Markdown
Contributor Author

@GustavoSilvadeCarvalho GustavoSilvadeCarvalho Jun 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @skullysmods! Thanks for the review.

My website (brkn.bio) is a bio-link platform, which means the main content and user profiles live in sub-routes (like brkn.bio/maison, brkn.bio/aroc, etc.).

If we keep the strict [/] at the very end of the regex, PreMiD won't trigger the presence script on any user profile page, only on the landing page.

Could we update the regex to allow sub-routes using your pattern, like this?
"regExp": ^https?[:][ /][ /](www[.])?brkn[.]bio[/](.*)?

Let me know if that works, and I'll update the commit right away!

"url": "brkn.bio",
"regExp": "^https?[:][/][/]brkn[.]bio[/]",
"regExp": "^https?://(www\\.)?brkn\\.bio/"
"version": "1.0.1",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"version": "1.0.1",
"version": "1.0.2",

@skullysmods skullysmods changed the title Fix regexp for www.brkn.bio URLs fix(brkn.bio): update regex Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants