mirror of
https://github.com/web3privacy/data
synced 2024-10-15 18:16:28 +02:00
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:
parent
e9533d9224
commit
85719df1db
1 changed files with 2 additions and 1 deletions
|
@ -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}$'
|
||||||
|
@ -214,4 +215,4 @@ properties:
|
||||||
research:
|
research:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: "#/$defs/research"
|
$ref: "#/$defs/research"
|
||||||
|
|
Loading…
Reference in a new issue