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: {
format: E.ProofFormat.JSON
},
target: [{
format: E.ClaimFormat.FINGERPRINT,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.EQUALS,
path: ['guild', 'description']
}]
target: [
{
format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
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/',
shouldMatch: false
}
},
{
uri: 'https://discord.gg/',
shouldMatch: false