feat: Dernier développement
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-14 23:53:20 +02:00
parent 0d867c03e4
commit 0a35ab3479
15 changed files with 60 additions and 11 deletions

View File

@ -23,13 +23,16 @@
{{ end }}
{{- $params = $params | append (string $string) -}}
<span
class="obfuscate{{ if $isMailtoLink }} at{{ end }}"
class="cachecache{{ if $isMailtoLink }} at{{ end }}"
data-separators="{{ $separators }}"
{{ range $param_index, $param_value := $params }}
data-param{{add $param_index 1}}="{{ range $index := seq (sub (len $param_value) 1) 0}}{{ substr $param_value $index 1}}{{ end }}"
{{ end }}
data-regex="{{ $regex }}"
data-replace="{{ $replace }}"
>
>{{ if $isMailtoLink }}
{{ $mail := index (split .Destination ":") 1 }}
{{ range $index := seq (sub (len $mail) 1) 0}}{{ substr $mail $index 1}}{{ end }}
{{ end }}
</span>
{{- end -}}