Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #879: Modified URL_PROTOCOL_REGEXP to also remove period at the end of URL #957

Merged
merged 4 commits into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG-nightly.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
**The changes listed here are not assigned to an official release**.

- Reinstated animated avatars
- Fixed an issue where links would include a period at the end
- Added an option to hide the channel point balance button under the chat input box
- Updated background of the current emote tab selection
- Fixed an issue where suspicious users were not highlighted and clips not being displayed in chat
Expand Down
2 changes: 1 addition & 1 deletion src/common/chat/Tokenizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
import { Regex } from "@/site/twitch.tv";
import { parse as tldParse } from "tldts";

const URL_PROTOCOL_REGEXP = /^https?:\/\//i;
const URL_PROTOCOL_REGEXP = /^https?:\/\/|\.$/i;

const backwardModifierBlacklist = new Set(["w!", "h!", "v!"]);

Expand Down
Loading