Skip to content

Commit

Permalink
fix(openchat.js): correct background image url parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonictw committed Nov 14, 2024
1 parent 8b6881a commit e772aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/openchat.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function parseTicketPage(pageUrl, isFlush = false) {
const inners = $("*[class$='Inner']");
const backgroundImage = inners.eq(0).
css("background-image")?.
replace(/url\((.*)\)/, "$1") || "";
replace(/url\(['"]?(.*?)['"]?\)/, "$1") || "";

// Return the parsed data
return {
Expand Down

0 comments on commit e772aac

Please sign in to comment.