Skip to content

fix: URL extraction regex and code block placeholder collision (#105, #109)#112

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
zdfgu113:fix/webhook-and-url-bugs
Jun 27, 2026
Merged

fix: URL extraction regex and code block placeholder collision (#105, #109)#112
ralyodio merged 1 commit into
profullstack:masterfrom
zdfgu113:fix/webhook-and-url-bugs

Conversation

@zdfgu113

Copy link
Copy Markdown
Contributor

Summary

Fixes two bugs reported in issues #105 and #109.

Fix #105 - Profile ID URL extraction rejects generated qryptchat IDs

File: src/lib/utils/unique-identifier.js

The regex expected exactly 10 alphanumeric characters, but generateShareableProfileUrl() produces identifiers like qryptchatA1B2C3D4 (17 chars). Changed regex to match the actual qryptchat prefix format.

Fix #109 - URL formatter code block placeholder collision

File: src/lib/utils/url-link-converter.js

Code blocks were replaced with CODE_BLOCK_N placeholders. If a user typed that literal text, the restore step would incorrectly inject HTML. Changed delimiters to angle-bracket syntax that gets HTML-escaped in user text, making collision impossible.

Testing

Both fixes are targeted changes that preserve existing behavior for all valid inputs while fixing the specific edge cases described in the issues.

Closes #105, Closes #109

@ralyodio ralyodio merged commit cd24781 into profullstack:master Jun 27, 2026
8 checks passed
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.

URL formatter can restore code blocks into user-authored placeholder text Profile ID URL extraction rejects generated qryptchat IDs

2 participants