Skip to content

Commit

Permalink
Fixed topic regex pattern and added search by topic links after save (#…
Browse files Browse the repository at this point in the history
…9219)

Signed-off-by: Alexey Terentyev <[email protected]>
  • Loading branch information
axifive authored and lafriks committed Dec 2, 2019
1 parent 66028d5 commit 2fc3eb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/js/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions web_src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3150,7 +3150,7 @@ function initTopicbar() {

const last = viewDiv.children('a').last();
for (let i = 0; i < topicArray.length; i++) {
$(`<div class="ui small label topic" style="cursor:pointer;">${topicArray[i]}</div>`).insertBefore(last);
$(`<a class="ui repo-topic small label topic" href="${suburl}/explore/repos?q=${topicArray[i]}&topic=1">${topicArray[i]}</a>`).insertBefore(last);
}
}
editDiv.css('display', 'none');
Expand Down Expand Up @@ -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
},
{
Expand Down

0 comments on commit 2fc3eb1

Please sign in to comment.