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="{% if custom_domain.catch_all %} disabled-content {% endif %}">
|
||||||
<div class="mt-3 mb-2">
|
<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>
|
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
|
A rule is based on a regular expression (<b>regex</b>): if an alias <b>fully</b> matches the expression,
|
||||||
created.
|
it'll be automatically created.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="alert alert-info">
|
<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.
|
regex test.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -74,24 +74,24 @@
|
||||||
<label>Regex</label>
|
<label>Regex</label>
|
||||||
|
|
||||||
{{ new_auto_create_rule_form.regex(class="form-control",
|
{{ new_auto_create_rule_form.regex(class="form-control",
|
||||||
placeholder="prefix\..*"
|
placeholder="prefix.*"
|
||||||
) }}
|
) }}
|
||||||
{{ render_field_errors(new_auto_create_rule_form.regex) }}
|
{{ render_field_errors(new_auto_create_rule_form.regex) }}
|
||||||
|
|
||||||
<div class="small-text">
|
<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
|
the
|
||||||
regex to <em data-toggle="tooltip"
|
regex to <em data-toggle="tooltip"
|
||||||
title="Click to copy"
|
title="Click to copy"
|
||||||
class="clipboard"
|
class="clipboard"
|
||||||
data-clipboard-text="prefix\..*">prefix\..*</em>
|
data-clipboard-text="prefix.*">prefix.*</em>
|
||||||
<br>
|
<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"
|
<em data-toggle="tooltip"
|
||||||
title="Click to copy"
|
title="Click to copy"
|
||||||
class="clipboard"
|
class="clipboard"
|
||||||
data-clipboard-text=".*\.suffix">.*\.suffix</em>
|
data-clipboard-text=".*suffix">.*suffix</em>
|
||||||
<br>
|
<br>
|
||||||
To test out regex, we recommend using regex tester tool like
|
To test out regex, we recommend using regex tester tool like
|
||||||
<a href="https://regex101.com" target="_blank">https://regex101.com↗</a>
|
<a href="https://regex101.com" target="_blank">https://regex101.com↗</a>
|
||||||
|
|
Loading…
Reference in a new issue