diff options
author | tdro <tdro@noreply.example.com> | 2022-12-21 19:20:43 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-12-21 19:20:43 -0500 |
commit | b7acf1be64b6845a0b826a1af4c0db62e70e9aba (patch) | |
tree | 27c47c722f035ebdf210dabdda025467d7431ec1 /themes/default/layouts/partials/function-strip-filechars.html | |
parent | 1ee7be4fb6e73ced1a314712e870759e8ff7eff5 (diff) | |
download | canory-b7acf1be64b6845a0b826a1af4c0db62e70e9aba.tar.gz canory-b7acf1be64b6845a0b826a1af4c0db62e70e9aba.tar.bz2 canory-b7acf1be64b6845a0b826a1af4c0db62e70e9aba.zip |
themes/default/layouts/partials/function-strip-filechars: Use replace here
function-strip-urlchars -> function-strip-filechars
Diffstat (limited to 'themes/default/layouts/partials/function-strip-filechars.html')
-rw-r--r-- | themes/default/layouts/partials/function-strip-filechars.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/function-strip-filechars.html b/themes/default/layouts/partials/function-strip-filechars.html new file mode 100644 index 0000000..b68daa0 --- /dev/null +++ b/themes/default/layouts/partials/function-strip-filechars.html @@ -0,0 +1,28 @@ +{{- $input := . -}} +{{- $output := $input -}} + +{{- $output = replace $output `{` "" -}} +{{- $output = replace $output `}` "" -}} +{{- $output = replace $output `|` "" -}} +{{- $output = replace $output `\` "" -}} +{{- $output = replace $output `^` "" -}} +{{- $output = replace $output `[` "" -}} +{{- $output = replace $output `]` "" -}} +{{- $output = replace $output "`" "" -}} +{{- $output = replace $output `;` "" -}} +{{- $output = replace $output `/` "" -}} +{{- $output = replace $output `?` "" -}} +{{- $output = replace $output `:` "" -}} +{{- $output = replace $output `@` "" -}} +{{- $output = replace $output `&` "" -}} +{{- $output = replace $output `=` "" -}} +{{- $output = replace $output `+` "" -}} +{{- $output = replace $output `$` "" -}} +{{- $output = replace $output `,` "" -}} +{{- $output = replace $output `<` "" -}} +{{- $output = replace $output `>` "" -}} +{{- $output = replace $output `#` "" -}} +{{- $output = replace $output `%` "" -}} +{{- $output = replace $output `\` "" -}} + +{{- return $output -}} |