allow proof in guild name

This commit is contained in:
Bram Hagens 2024-02-08 10:28:36 +01:00
parent 6d464176df
commit 041e22c52d
No known key found for this signature in database
GPG key ID: CEF9728B2127ECDC

View file

@ -62,12 +62,20 @@ export function processURI (uri) {
response: { response: {
format: E.ProofFormat.JSON format: E.ProofFormat.JSON
}, },
target: [{ target: [
format: E.ClaimFormat.FINGERPRINT, {
encoding: E.EntityEncodingFormat.PLAIN, format: E.ClaimFormat.URI,
relation: E.ClaimRelation.EQUALS, encoding: E.EntityEncodingFormat.PLAIN,
path: ['guild', 'description'] relation: E.ClaimRelation.CONTAINS,
}] path: ['guild', 'description']
},
{
format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS,
path: ['guild', 'name']
}
]
} }
}) })
} }
@ -108,7 +116,7 @@ export const tests = [
{ {
uri: 'https://discord.com/invite/', uri: 'https://discord.com/invite/',
shouldMatch: false shouldMatch: false
} },
{ {
uri: 'https://discord.gg/', uri: 'https://discord.gg/',
shouldMatch: false shouldMatch: false