Skip to content

Commit

Permalink
Fix linkifyHtml.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Chan committed Jan 19, 2022
1 parent 8f7686e commit 402f21f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default class Linkify extends Plugin {
let index = m.match.index;
let matched_text = m.match[0];
let before = text.substring(0, index);
let after = text.substring(index + text.length);
let after = text.substring(index + matched_text.length);
let anchor = document.createElement("a");
anchor.textContent = matched_text;
anchor.href = m.link;
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "linkify",
"name": "Linkify",
"version": "1.0.5",
"version": "1.0.6",
"minAppVersion": "0.13.0",
"description": "Turns text into links.",
"author": "matthewhchan",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkify",
"version": "1.0.5",
"version": "1.0.6",
"description": "Turns strings into links.",
"main": "main.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"1.0.6": "0.13.0",
"1.0.5": "0.13.0",
"1.0.4": "0.13.0",
"1.0.3": "0.13.0",
Expand Down

0 comments on commit 402f21f

Please sign in to comment.