mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
Fix JSON schema validation to match full function names
This commit is contained in:
parent
3d9370b1e4
commit
4e4b61a65a
@ -33,7 +33,7 @@ def build_schema():
|
||||
'functions': {
|
||||
'type': 'object',
|
||||
"patternProperties": {
|
||||
'|'.join(function_names): {'$ref': '#/definitions/examples'}
|
||||
'^({})$'.format('|'.join(function_names)): {'$ref': '#/definitions/examples'}
|
||||
},
|
||||
'additionalProperties': False
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user