From 2cdf20121a097585354d3a6ae2e7450e3f762974 Mon Sep 17 00:00:00 2001 From: Haocen Xu Date: Sat, 4 Jul 2020 23:57:29 -0400 Subject: [PATCH] Make urls2links match expected test outcome --- js/privatebin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/privatebin.js b/js/privatebin.js index a230ec19..2ee4ca29 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -408,7 +408,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { DOMPurify.sanitize( element.html().replace( /(((https?|ftp):\/\/[\w?!=&.\/-;#@~%+*-]+(?![\w\s?!&.\/;#~%"=-]>))|((magnet):[\w?=&.\/-;#@~%+*-]+))/ig, - '$1' + '$1' ) ) );