Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/54444c27ea842a3caea87b33f9efe20f15525307 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Replaced matchAll usage since it's not available on all browsers

pull/21/head
Taloth Saldono 5 years ago committed by ta264
parent bc88a26c80
commit 54444c27ea

@ -16,10 +16,11 @@ class InlineMarkdown extends Component {
// For now only replace links
const markdownBlocks = [];
if (data) {
const matches = data.matchAll(/\[(.+?)\]\((.+?)\)/g);
let endIndex = 0;
const regex = RegExp(/\[(.+?)\]\((.+?)\)/g);
for (const match of matches) {
let endIndex = 0;
let match = null;
while ((match = regex.exec(data)) !== null) {
if (match.index > endIndex) {
markdownBlocks.push(data.substr(endIndex, match.index - endIndex));
}

Loading…
Cancel
Save