Merge pull request #5465 from urbit/ixv/publish-url-fix

This commit is contained in:
Liam Fitzgerald 2021-12-02 08:24:16 -05:00 committed by GitHub
commit 77d0071315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ export const isUrl = (str) => {
const raceRegexes = (str) => {
let link = str.match(URL_REGEX);
while(link?.[1]?.endsWith('(')) {
while(link?.[1]?.endsWith('(') || link?.[1].endsWith('[')) {
const resumePos = link[1].length + link[2].length;
const resume = str.slice(resumePos);
link = resume.match(URL_REGEX);