From 844f840e5120875e966a06b6bd329329e12a83b9 Mon Sep 17 00:00:00 2001 From: Matthew Chan <> Date: Sat, 29 Jan 2022 14:40:35 -0800 Subject: [PATCH] Fix reading mode links. --- main.ts | 2 +- manifest.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.ts b/main.ts index 63c8c07..c5a8f20 100644 --- a/main.ts +++ b/main.ts @@ -115,7 +115,7 @@ export default class Linkify extends Plugin { if (m != null) { return { match: m, - link: text.replace(regexp, rule.link), + link: m[0].replace(regexp, rule.link), } } } diff --git a/manifest.json b/manifest.json index c8d92af..89f34ff 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "linkify", "name": "Linkify", - "version": "1.0.6", + "version": "1.0.7", "minAppVersion": "0.13.0", "description": "Turns text into links.", "author": "matthewhchan", diff --git a/package.json b/package.json index 8db0fad..0b73213 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "linkify", - "version": "1.0.6", + "version": "1.0.7", "description": "Turns strings into links.", "main": "main.js", "scripts": {