From 712fba44c1e45761bf38c50fa5160fd86c864167 Mon Sep 17 00:00:00 2001 From: boomzillawtf Date: Fri, 6 May 2016 16:17:46 -0400 Subject: [PATCH 1/2] Only convert links on the line by themselves. --- library.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.js b/library.js index f31c080..40330e0 100644 --- a/library.js +++ b/library.js @@ -21,7 +21,7 @@ var iframely = { cache: LRU({ maxAge: 1000*60*60*24 // one day }), - htmlRegex: /(.*?)<\/a>/g + htmlRegex: /(?:

|^)(.*?)<\/a>(?:|<\/p>)/g }; var app; From 1a252a541d25e36520d74c5806e4f281e6a96a60 Mon Sep 17 00:00:00 2001 From: boomzillawtf Date: Fri, 6 May 2016 16:43:29 -0400 Subject: [PATCH 2/2] Convert links on consecutive lines. --- library.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.js b/library.js index 40330e0..d555400 100644 --- a/library.js +++ b/library.js @@ -21,7 +21,7 @@ var iframely = { cache: LRU({ maxAge: 1000*60*60*24 // one day }), - htmlRegex: /(?:

|^)(.*?)<\/a>(?:|<\/p>)/g + htmlRegex: /(?:

|^)(.*?)<\/a>(?:|<\/p>)/gm }; var app;