Skip to content

Commit

Permalink
Issue #879: Modified URL_PROTOCOL_REGEXP to also remove period at the…
Browse files Browse the repository at this point in the history
… end of URL (#957)

Fixes #879

Co-authored-by: Troy <[email protected]>
  • Loading branch information
junsuparkswe and TroyKomodo authored Feb 17, 2024
1 parent 7934310 commit 9ef3cdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit 9ef3cdb

Please sign in to comment.