forked from Mirrors/doipjs
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,
|
{
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue