improve auto create page wording
This commit is contained in:
parent
c6a2af3c3c
commit
40299cbf34
|
@ -24,12 +24,12 @@
|
|||
<div class="{% if custom_domain.catch_all %} disabled-content {% endif %}">
|
||||
<div class="mt-3 mb-2">
|
||||
For a greater control than a simple catch-all, you can define a set of <b>rules</b> to auto create aliases. <br>
|
||||
A rule is based on a regular expression (<b>regex</b>): if an alias matches the expression, it'll be automatically
|
||||
created.
|
||||
A rule is based on a regular expression (<b>regex</b>): if an alias <b>fully</b> matches the expression,
|
||||
it'll be automatically created.
|
||||
</div>
|
||||
|
||||
<div class="alert alert-info">
|
||||
Only the local part of the alias (i.e. <b>@{{ custom_domain.domain }}</b> is ignored) during the
|
||||
Only the <b>local</b> part of the alias (i.e. <b>@{{ custom_domain.domain }}</b> is ignored) during the
|
||||
regex test.
|
||||
</div>
|
||||
|
||||
|
@ -74,24 +74,24 @@
|
|||
<label>Regex</label>
|
||||
|
||||
{{ new_auto_create_rule_form.regex(class="form-control",
|
||||
placeholder="prefix\..*"
|
||||
placeholder="prefix.*"
|
||||
) }}
|
||||
{{ render_field_errors(new_auto_create_rule_form.regex) }}
|
||||
|
||||
<div class="small-text">
|
||||
For example, if you want aliases that starts with <b>prefix.</b> to be automatically created, you can set
|
||||
For example, if you want aliases that starts with <b>prefix</b> to be automatically created, you can set
|
||||
the
|
||||
regex to <em data-toggle="tooltip"
|
||||
title="Click to copy"
|
||||
class="clipboard"
|
||||
data-clipboard-text="prefix\..*">prefix\..*</em>
|
||||
data-clipboard-text="prefix.*">prefix.*</em>
|
||||
<br>
|
||||
|
||||
If you want aliases that ends with <b>.suffix</b> to be automatically created, you can use the regex
|
||||
If you want aliases that ends with <b>suffix</b> to be automatically created, you can use the regex
|
||||
<em data-toggle="tooltip"
|
||||
title="Click to copy"
|
||||
class="clipboard"
|
||||
data-clipboard-text=".*\.suffix">.*\.suffix</em>
|
||||
data-clipboard-text=".*suffix">.*suffix</em>
|
||||
<br>
|
||||
To test out regex, we recommend using regex tester tool like
|
||||
<a href="https://regex101.com" target="_blank">https://regex101.com↗</a>
|
||||
|
|
Loading…
Reference in New Issue