mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-02-20 12:19:03 +00:00
refactor: simplified a regex in home.js
This commit is contained in:
parent
5a74776978
commit
274d922b2f
@ -688,7 +688,7 @@ page.updateTemplate = (file, response) => {
|
||||
link.classList.remove('is-hidden')
|
||||
clipboard.parentElement.classList.remove('is-hidden')
|
||||
|
||||
const exec = /.[\w]+(\?|$)/.exec(response.url)
|
||||
const exec = /.[\w]+$/.exec(response.url)
|
||||
const extname = exec && exec[0]
|
||||
? exec[0].toLowerCase()
|
||||
: null
|
||||
|
Loading…
Reference in New Issue
Block a user