mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
allow proof in guild name
This commit is contained in:
parent
6d464176df
commit
041e22c52d
1 changed files with 15 additions and 7 deletions
|
@ -62,12 +62,20 @@ export function processURI (uri) {
|
||||||
response: {
|
response: {
|
||||||
format: E.ProofFormat.JSON
|
format: E.ProofFormat.JSON
|
||||||
},
|
},
|
||||||
target: [{
|
target: [
|
||||||
format: E.ClaimFormat.FINGERPRINT,
|
{
|
||||||
|
format: E.ClaimFormat.URI,
|
||||||
encoding: E.EntityEncodingFormat.PLAIN,
|
encoding: E.EntityEncodingFormat.PLAIN,
|
||||||
relation: E.ClaimRelation.EQUALS,
|
relation: E.ClaimRelation.CONTAINS,
|
||||||
path: ['guild', 'description']
|
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
|
||||||
|
|
Loading…
Reference in a new issue