Fix #1762, add a link to see the mastodon account directly on your home server if the contributor has a mastodon set

This commit is contained in:
Pieter Vander Vennet 2024-01-21 02:54:49 +01:00
parent acc71a34b6
commit 64372aa664
3 changed files with 30 additions and 4 deletions

View file

@ -3,7 +3,7 @@ import { Translation } from "../../i18n/Translation"
import Translations from "../../i18n/Translations"
export default class FediverseValidator extends Validator {
public static readonly usernameAtServer: RegExp = /^@?(\w+)@((\w|\.)+)$/
public static readonly usernameAtServer: RegExp = /^@?(\w+)@((\w|-|\.)+)$/
constructor() {
super(