From 67826885c78aa10d75b256cd4e60b3f37f014540 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 19 Sep 2020 23:50:49 -0500 Subject: [PATCH] Fix issue with splitting link dashes --- helpers/build-app-list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/build-app-list.js b/helpers/build-app-list.js index 23b2b11..e58b7ba 100644 --- a/helpers/build-app-list.js +++ b/helpers/build-app-list.js @@ -85,8 +85,8 @@ export default async function () { } - if ( isParagraph && token.type === 'inline' && token.content.includes('-') ) { - const [ link, text ] = token.content.split('-').map(string => string.trim()) + if ( isParagraph && token.type === 'inline' && token.content.includes(' - ') ) { + const [ link, text ] = token.content.split(' - ').map(string => string.trim()) const relatedLinks = getTokenLinks(token.children)