mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-11-23 07:17:43 +01:00
Improve wish import link regex
This commit is contained in:
parent
7f30f151ee
commit
e414916556
1 changed files with 4 additions and 0 deletions
|
@ -153,6 +153,9 @@
|
|||
|
||||
try {
|
||||
if (selectedType === 'android') {
|
||||
const urlString = genshinLink.match(/https:\/\/.*#/g);
|
||||
url = new URL(urlString);
|
||||
} else if (selectedType === 'pclog') {
|
||||
const urlString = genshinLink.match(/https:\/\/.*\//g);
|
||||
url = new URL(urlString);
|
||||
} else {
|
||||
|
@ -220,6 +223,7 @@
|
|||
}
|
||||
|
||||
currentBanner = type.name;
|
||||
console.log(url);
|
||||
|
||||
const weapons = Object.values(weaponList);
|
||||
const chars = Object.values(characters);
|
||||
|
|
Loading…
Reference in a new issue