mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-10 10:18:23 +00:00
Use more conventional regex format.
This commit is contained in:
parent
c92eb10a86
commit
69787ded3b
@ -64,8 +64,9 @@ export default {
|
||||
},
|
||||
isPipedPlaylist: _this => {
|
||||
// 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 regex.test(_this.$route.query.list);
|
||||
return /[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}/.test(
|
||||
_this.$route.query.list,
|
||||
);
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
|
Loading…
Reference in New Issue
Block a user