mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Use more conventional regex format.
This commit is contained in:
parent
c92eb10a86
commit
69787ded3b
1 changed files with 3 additions and 2 deletions
|
@ -64,8 +64,9 @@ export default {
|
||||||
},
|
},
|
||||||
isPipedPlaylist: _this => {
|
isPipedPlaylist: _this => {
|
||||||
// regex to determine whether it's a Piped plalylist
|
// regex to determine whether it's a Piped plalylist
|
||||||
const regex = new RegExp("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}");
|
return /[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}/.test(
|
||||||
return regex.test(_this.$route.query.list);
|
_this.$route.query.list,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
Loading…
Reference in a new issue