Skip to content

Commit

Permalink
WIP added validator
Browse files Browse the repository at this point in the history
  • Loading branch information
francoismg authored Feb 12, 2024
1 parent 1d28059 commit 89beafd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/archives/pyvo_integration/astronomical_archives.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
</param>
</when>
<when value="custom">
<param name="access_url" type="text" label="TAP archive access url" />
<param name="access_url" type="text" label="TAP archive access url">
<validator type="regex" message="Url seems invalid">^(?:http)s?://(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|)(?::\d+)?(?:/?|[/?]\S+)$</validator>
</param>
</when>
</conditional>
<section name="query_section" title="Query selection" expanded="true">
Expand Down

0 comments on commit 89beafd

Please sign in to comment.