mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 01:54:43 +03:00
Merge pull request #5465 from urbit/ixv/publish-url-fix
This commit is contained in:
commit
77d0071315
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user