From a3c639ff491ec5ebea510dab075611a4e0fcd8b6 Mon Sep 17 00:00:00 2001 From: Caesar Schinas Date: Sat, 19 Aug 2023 17:07:31 +0100 Subject: [PATCH] better description of input validation attributes Closes https://codeberg.org/forgejo/website/issues/168 --- docs/user/issue-pull-request-templates.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/user/issue-pull-request-templates.md b/docs/user/issue-pull-request-templates.md index ee792d6e..a39b46b8 100644 --- a/docs/user/issue-pull-request-templates.md +++ b/docs/user/issue-pull-request-templates.md @@ -217,11 +217,11 @@ Attributes: Validations: -| Key | Description | Required | Type | Default | Valid values | -| --------- | ------------------------------------------------------------------------------------------------ | -------- | ------- | ------- | ------------------------------------------------------------------------ | -| required | Prevents form submission until element is completed. | Optional | Boolean | false | - | -| is_number | Prevents form submission until element is filled with a number. | Optional | Boolean | false | - | -| regex | Prevents form submission until element is filled with a value that match the regular expression. | Optional | String | - | a [regular expression](https://en.wikipedia.org/wiki/Regular_expression) | +| Key | Description | Required | Type | Default | Valid values | +| --------- | ----------------------------------------------------------------------------------------- | -------- | ------- | ------- | -------------------------------------------------------------------------------------------------------------------- | +| required | Prevents form submission if the input is empty. | Optional | Boolean | false | - | +| is_number | Prevents form submission if the value of the input is not a number. | Optional | Boolean | false | - | +| regex | Prevents form submission if the value of the input does not match the regular expression. | Optional | String | - | a [JavaScript regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) | ### Dropdown