Skip to content

fix: Handle non-alphanumeric characters in bangs - #5

Merged
t3dotgg merged 1 commit into
T3-Content:mainfrom
samyakbardiya:fix/handle-non-alphanumeric-chars
Feb 16, 2025
Merged

t3dotgg merged 1 commit into
T3-Content:mainfrom
samyakbardiya:fix/handle-non-alphanumeric-chars

Conversation

@samyakbardiya

Copy link
Copy Markdown
Contributor

Updated the regex to handle the non-alphanumeric chars by using \S.

Resolves: #3

@vercel

vercel Bot commented Feb 15, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unduck ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2025 1:06pm

@t3dotgg

t3dotgg commented Feb 16, 2025

Copy link
Copy Markdown
Collaborator

This will not match correctly on a url formatted like unduck.link/?q=!yt+theo+video - it will pull in the + separator incorrectly :(

@t3dotgg t3dotgg closed this Feb 16, 2025
@t3dotgg

t3dotgg commented Feb 16, 2025

Copy link
Copy Markdown
Collaborator

I was wrong

@t3dotgg t3dotgg reopened this Feb 16, 2025
@t3dotgg
t3dotgg merged commit f96ce57 into T3-Content:main Feb 16, 2025
@samyakbardiya
samyakbardiya deleted the fix/handle-non-alphanumeric-chars branch February 16, 2025 05:11
ThisModernDay pushed a commit to ThisModernDay/unduck that referenced this pull request Feb 27, 2025
…hanumeric-chars

fix: Handle non-alphanumeric characters in bangs

This branch was successfully deployed

1 active deployment
Preview — 001e4812 Deployed Feb 15, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle non-alphanumeric characters in bangs

2 participants