mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-14 04:08:21 +00:00
Use more conventional regex format.
This commit is contained in:
parent
c92eb10a86
commit
69787ded3b
@ -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 New Issue
Block a user