Skip to content

Commit

Permalink
Shortened regex ↞ [auto-sync from `adamlui/ai-web-extensions/autoclea…
Browse files Browse the repository at this point in the history
…r-chatgpt-history`]
  • Loading branch information
kudo-sync-bot committed Nov 14, 2024
1 parent f44ff96 commit 882e86d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
// @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.11.14
// @version 2024.11.14.1
// @license MIT
// @icon https://media.autoclearchatgpt.com/images/icons/openai/black/icon48.png?a8868ef
// @icon64 https://media.autoclearchatgpt.com/images/icons/openai/black/icon64.png?a8868ef
Expand Down Expand Up @@ -277,7 +277,7 @@
onload: resp => resolve(JSON.parse(resp.responseText))
})))
app.urls.update = app.urls.greasyFork.replace('https://', 'https://update.')
.replace(/(\d+)-?([a-zA-Z-]*)$/, (_, id, name) => `${id}/${ name || 'script' }.meta.js`)
.replace(/(\d+)-?([a-z-]*)$/i, (_, id, name) => `${id}/${ name || 'script' }.meta.js`)

// Init CONFIG
const config = { userLanguage: chatgpt.getUserLanguage() }
Expand Down

0 comments on commit 882e86d

Please sign in to comment.