mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-03 11:21:20 +01:00
Remove unnecessary escape character, failing check
fixed ``` \return-youtube-dislike\Website\pages\index.vue 129:198 error Unnecessary escape character: \/ no-useless-escape ```
This commit is contained in:
1 file changed
+1
-1
@@ -123,7 +123,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const YOUTUBE_REGEX = /(?:http:|https:)*?\/\/(?:www\.|)(?:youtube\.com|m\.youtube\.com|youtu\.|youtube-nocookie\.com).*(?:v=|v%3D|v\/|(?:a|p)\/(?:a|u)\/\d.*\/|watch\?|vi(?:=|\/)|\/embed\/|oembed\?|be\/|e\/)([^&?%#\/\n]*)/;
|
const YOUTUBE_REGEX = /(?:http:|https:)*?\/\/(?:www\.|)(?:youtube\.com|m\.youtube\.com|youtu\.|youtube-nocookie\.com).*(?:v=|v%3D|v\/|(?:a|p)\/(?:a|u)\/\d.*\/|watch\?|vi(?:=|\/)|\/embed\/|oembed\?|be\/|e\/)([^&?%#/\n]*)/;
|
||||||
let lastVideoId = "";
|
let lastVideoId = "";
|
||||||
window.oninput = (e) => {
|
window.oninput = (e) => {
|
||||||
const videoId = (e.target.value.match(YOUTUBE_REGEX) || {})[1] || e.target.value;
|
const videoId = (e.target.value.match(YOUTUBE_REGEX) || {})[1] || e.target.value;
|
||||||
|
|||||||
Reference in new issue
Block a user