Extending the caption section of schema - regex to include URLs in index.yaml

Following up on this error:
https://github.com/web3privacy/data/actions/runs/10602350927/job/29384187270

Investigated to find that the error was because the caption entry of a speaker had many URL links within then, so breaking the configuration - added the following regex to the pattern for caption:


```
'^((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)'
```

Tested the regex expression in https://regex101.com/ first to ensure it worked with url format
This commit is contained in:
niclaz 2024-08-28 21:39:03 +02:00 committed by GitHub
parent e9533d9224
commit 85719df1db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -116,6 +116,7 @@ $defs:
type: string type: string
caption: caption:
type: string type: string
pattern: '^((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)'
country: country:
type: string type: string
pattern: '^[a-z]{2}$' pattern: '^[a-z]{2}$'