From 40299cbf340be31f95d9f206e85006bdfe07e6ee Mon Sep 17 00:00:00 2001 From: Son Date: Mon, 6 Dec 2021 18:21:17 +0100 Subject: [PATCH] improve auto create page wording --- .../dashboard/domain_detail/auto-create.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/dashboard/domain_detail/auto-create.html b/templates/dashboard/domain_detail/auto-create.html index e7120b43..6af0e8e9 100644 --- a/templates/dashboard/domain_detail/auto-create.html +++ b/templates/dashboard/domain_detail/auto-create.html @@ -24,12 +24,12 @@
For a greater control than a simple catch-all, you can define a set of rules to auto create aliases.
- A rule is based on a regular expression (regex): if an alias matches the expression, it'll be automatically - created. + A rule is based on a regular expression (regex): if an alias fully matches the expression, + it'll be automatically created.
- Only the local part of the alias (i.e. @{{ custom_domain.domain }} is ignored) during the + Only the local part of the alias (i.e. @{{ custom_domain.domain }} is ignored) during the regex test.
@@ -74,24 +74,24 @@ {{ new_auto_create_rule_form.regex(class="form-control", - placeholder="prefix\..*" + placeholder="prefix.*" ) }} {{ render_field_errors(new_auto_create_rule_form.regex) }}
- For example, if you want aliases that starts with prefix. to be automatically created, you can set + For example, if you want aliases that starts with prefix to be automatically created, you can set the regex to prefix\..* + data-clipboard-text="prefix.*">prefix.*
- If you want aliases that ends with .suffix to be automatically created, you can use the regex + If you want aliases that ends with suffix to be automatically created, you can use the regex .*\.suffix + data-clipboard-text=".*suffix">.*suffix
To test out regex, we recommend using regex tester tool like https://regex101.com↗