Skip to content

Commit

Permalink
Update embed regex for new facebook embed url (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchdev committed Nov 30, 2023
1 parent 1bfb8ba commit a577583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/chat/js/formatters/EmbedUrlFormatter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default class EmbedUrlFormatter {
constructor() {
this.bigscreenregex =
/(^|\s)(#(kick|twitch|twitch-vod|twitch-clip|youtube|youtube-live|facebook|rumble|vimeo)\/([\w-]{3,64}|\d{10,20}\/videos\/\d{10,20}|\w{7}\/\?pub=\w{5})(?:\?t=(\d+)s?)?)\b/g;
/(^|\s)(#(kick|twitch|twitch-vod|twitch-clip|youtube|youtube-live|facebook|rumble|vimeo)\/([\w\d]{3,64}\/videos\/\d{10,20}|[\w-]{3,64}|\w{7}\/\?pub=\w{5})(?:\?t=(\d+)s?)?)\b/g;
}

format(chat, str /* , message=null */) {
Expand Down

0 comments on commit a577583

Please sign in to comment.