patch inquiry link - replace me with server-side fix

pull/8556/head
Thibault Duplessis 2021-04-02 09:44:51 +02:00
parent 5a70d8b145
commit 7953eed94a
1 changed files with 8 additions and 0 deletions

View File

@ -35,4 +35,12 @@ $(function () {
});
Mousetrap.bind('d', () => $('#inquiry .actions.close form.process button[type="submit"]').trigger('click'));
$('#inquiry .atom p').each(function () {
$(this).html(
$(this)
.html()
.replaceAll(/lichess\.org\/([\w\/]{8,})/g, '<a href="/$1">$1</a>')
);
});
});