Skip to content

Commit 2fc3eb1

Browse files
axifivelafriks
authored andcommitted
Fixed topic regex pattern and added search by topic links after save (#9219)
Signed-off-by: Alexey Terentyev <[email protected]>
1 parent 66028d5 commit 2fc3eb1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

public/js/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web_src/js/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3150,7 +3150,7 @@ function initTopicbar() {
31503150

31513151
const last = viewDiv.children('a').last();
31523152
for (let i = 0; i < topicArray.length; i++) {
3153-
$(`<div class="ui small label topic" style="cursor:pointer;">${topicArray[i]}</div>`).insertBefore(last);
3153+
$(`<a class="ui repo-topic small label topic" href="${suburl}/explore/repos?q=${topicArray[i]}&topic=1">${topicArray[i]}</a>`).insertBefore(last);
31543154
}
31553155
}
31563156
editDiv.css('display', 'none');
@@ -3277,7 +3277,7 @@ function initTopicbar() {
32773277
rules: [
32783278
{
32793279
type: 'validateTopic',
3280-
value: /^[a-z0-9][a-z0-9-]{1,35}$/,
3280+
value: /^[a-z0-9][a-z0-9-]{0,35}$/,
32813281
prompt: topicPrompts.formatPrompt
32823282
},
32833283
{

0 commit comments

Comments
 (0)