Skip to content

Commit a941a93

Browse files
Apply suggested fix to marketing/scripts/import-linkedin-post.mjs from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent be8020f commit a941a93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

marketing/scripts/import-linkedin-post.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function normalizeText(value) {
140140
}
141141

142142
function linkifyBareUrls(line) {
143-
return line.replace(/(^|[\s(])((https?:\/\/)[^\s<>()\]]+[^\s<>().,\];:'"!?])/g, (match, prefix, url) => {
143+
return line.replace(/(^|[\s(])((https?:\/\/)[^\s<>()\]]+[^\s<>().,;\]:'"!?])/g, (match, prefix, url) => {
144144
const beforeUrl = line.slice(0, line.indexOf(match) + prefix.length);
145145

146146
if (beforeUrl.endsWith("](") || beforeUrl.endsWith('"') || beforeUrl.endsWith("'")) {

0 commit comments

Comments
 (0)