logo

auto_linker

AutoLinker-shim, based on https://git.pleroma.social/pleroma/auto_linker
commit: c72cdb552dd144016c25a5ac932f42240148a353
parent: 57acccbb0c43b871b61de5a84be9768cdd9ef3b3
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  1 Mar 2019 22:50:39 +0100

AutoLinker.Parser: Fix @match_mention regex

Diffstat:

Mlib/auto_linker/parser.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/auto_linker/parser.ex b/lib/auto_linker/parser.ex @@ -22,7 +22,7 @@ defmodule AutoLinker.Parser do # @user # @user@example.com - @match_mention ~r/^@[a-zA-Z\d_-]+(?:@.*)/u + @match_mention ~r/^@[a-zA-Z\d_-]+(?:@.*)?/u # https://www.w3.org/TR/html5/forms.html#valid-e-mail-address @valid_email ~r/.*@.*/u