logo

auto_linker

AutoLinker-shim, based on https://git.pleroma.social/pleroma/auto_linker
commit: 5049a50f3ea55b1f269d13dea944fad8ca7c87bd
parent: 4a456eff42a97a5d3902af4a099c9ed092f5d2b1
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