Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Anarios/return-youtube-dislike.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsy-b <94835959+sy-b@users.noreply.github.com>2022-04-16 05:12:47 +0300
committerGitHub <noreply@github.com>2022-04-16 05:12:47 +0300
commit4ded89c61508195507f0188726024ac5726de1bc (patch)
treed943abd992abc0a9cf4a7a9cc089cc5a63405c87
parent237997c565f0d284ae4d6b30033fcd29865c7386 (diff)
Remove unnecessary escape character, failing check
fixed ``` \return-youtube-dislike\Website\pages\index.vue 129:198 error Unnecessary escape character: \/ no-useless-escape ```
-rw-r--r--Website/pages/index.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/Website/pages/index.vue b/Website/pages/index.vue
index 713cad4..f1a26a6 100644
--- a/Website/pages/index.vue
+++ b/Website/pages/index.vue
@@ -123,7 +123,7 @@ export default {
};
},
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 = "";
window.oninput = (e) => {
const videoId = (e.target.value.match(YOUTUBE_REGEX) || {})[1] || e.target.value;