-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T5727: Use native URL validator instead of regex-based validator
Replace regex-based URL validator with native validator from vyos-utils. Also, move `include/url.xml.i` to `include/url-http-https.xml.i` to reflect the fact that it is used only for HTTP(S) URLs.
- Loading branch information
Showing
5 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- include start from url-http-https.xml.i --> | ||
<leafNode name="url"> | ||
<properties> | ||
<help>Remote URL</help> | ||
<valueHelp> | ||
<format>url</format> | ||
<description>Remote HTTP(S) URL</description> | ||
</valueHelp> | ||
<constraint> | ||
<validator name="url" argument="--scheme http --scheme https"/> | ||
</constraint> | ||
<constraintErrorMessage>Invalid HTTP(S) URL format</constraintErrorMessage> | ||
</properties> | ||
</leafNode> | ||
<!-- include end --> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters