From 2fc3eb1d152830001ea5e8655b082adcb7adaab9 Mon Sep 17 00:00:00 2001 From: Alexey 〒erentyev Date: Mon, 2 Dec 2019 12:13:19 +0300 Subject: Fixed topic regex pattern and added search by topic links after save (#9219) Signed-off-by: Alexey Terentyev --- web_src/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web_src') diff --git a/web_src/js/index.js b/web_src/js/index.js index b8cf81972b..1683210107 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -3150,7 +3150,7 @@ function initTopicbar() { const last = viewDiv.children('a').last(); for (let i = 0; i < topicArray.length; i++) { - $(`
${topicArray[i]}
`).insertBefore(last); + $(`${topicArray[i]}`).insertBefore(last); } } editDiv.css('display', 'none'); @@ -3277,7 +3277,7 @@ function initTopicbar() { rules: [ { type: 'validateTopic', - value: /^[a-z0-9][a-z0-9-]{1,35}$/, + value: /^[a-z0-9][a-z0-9-]{0,35}$/, prompt: topicPrompts.formatPrompt }, { -- cgit v1.2.3