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 => {
|
||||
// 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 a new issue