cloutier--bird.makeup/src/BirdsiteLive.Common/Regexes/UserRegexes.cs
Vincent Cloutier 3518c54277 fix url parsing
2023-06-30 15:01:40 -04:00

10 lines
No EOL
342 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Text.RegularExpressions;
namespace BirdsiteLive.Common.Regexes
{
public class UserRegexes
{
public static readonly Regex TwitterAccount = new Regex(@"^[a-zA-Z0-9_]+$");
public static readonly Regex Mention = new Regex(@"(^|.?[ \n\.]+)@([a-zA-Z0-9_]+)(?=\s|$|[\[\]<>,;:'\.!?/—\|-]|(. ))");
}
}