mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
id: fix typo in ContentURI.IsValid
This commit is contained in:
parent
dc35792d75
commit
956c13761e
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ func (uri ContentURI) IsEmpty() bool {
|
|||
var simpleHomeserverRegex = regexp.MustCompile(`^[a-zA-Z0-9.:-]+$`)
|
||||
|
||||
func (uri ContentURI) IsValid() bool {
|
||||
return IsValidMediaID(uri.Homeserver) && uri.Homeserver != "" && simpleHomeserverRegex.MatchString(uri.Homeserver)
|
||||
return IsValidMediaID(uri.FileID) && uri.Homeserver != "" && simpleHomeserverRegex.MatchString(uri.Homeserver)
|
||||
}
|
||||
|
||||
func IsValidMediaID(mediaID string) bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue