From a1dfb588f7777d3c5f2030f7aa5ecec615f785f9 Mon Sep 17 00:00:00 2001 From: Vladislav Andreev Date: Sat, 12 Oct 2024 14:10:08 +0300 Subject: [PATCH] Fix(link validator): regexp typo --- app/javascript/controllers/link_input_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/controllers/link_input_controller.js b/app/javascript/controllers/link_input_controller.js index 49e3ad2..8f3fd87 100644 --- a/app/javascript/controllers/link_input_controller.js +++ b/app/javascript/controllers/link_input_controller.js @@ -8,7 +8,7 @@ export default class extends Controller { '(youtube\\.com|youtu\\.be|m\\.youtube\\.com|music\\.youtube\\.com|gaming\\.youtube\\.com)' + '\\/(watch\\?v=|embed\\/|v\\/|.+\\?v=|)?' + '([a-zA-Z0-9_-]{11})' + - '(\?feature=shared)' + + '(\\?feature=shared)' + '(&.+)?$' )