Skip to content

Commit

Permalink
add support for query params
Browse files Browse the repository at this point in the history
  • Loading branch information
iiPythonx committed Nov 24, 2024
1 parent c65df8a commit 64c5b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nightwatch/web/js/nightwatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const NOTIFICATION_SFX = new Audio("/audio/notification.mp3");

// Construct text/attachment
let attachment = message.text, classlist = "message-content";
if (attachment.match(/^https:\/\/[\w\d./-]+.(?:avifs?|a?png|jpe?g|jfif|webp|ico|gif|svg)$/)) {
if (attachment.match(/^https:\/\/[\w\d./-]+.(?:avifs?|a?png|jpe?g|jfif|webp|ico|gif|svg)(?:\?.+)?$/)) {
attachment = `<img src = "${attachment}">`;
classlist += " has-image";
} else {
Expand Down

0 comments on commit 64c5b63

Please sign in to comment.