summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorShaun Guth <sguth@practicefusion.com>2016-01-24 23:30:28 +0000
committerWilliam Langford <wlangfor@gmail.com>2017-02-12 16:03:59 -0500
commite0b784ac6d7885669846337faad446be4ed0ded8 (patch)
treee9437d2c7f2d71e6d9fe6fd47e69932193156ac0 /docs
parentdc679081fa770c260ca9a569a8a4fdbb10bcdc20 (diff)
Add @base64d for decoding base64 #47
Diffstat (limited to 'docs')
-rw-r--r--docs/content/3.manual/manual.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml
index baad2ad3..0f917426 100644
--- a/docs/content/3.manual/manual.yml
+++ b/docs/content/3.manual/manual.yml
@@ -1770,6 +1770,11 @@ sections:
The input is converted to base64 as specified by RFC 4648.
+ * `@base64d`:
+
+ The inverse of `@base64`, input is decoded as specified by RFC 4648.
+ Note\: If the decoded string is not UTF-8, the results are undefined.
+
This syntax can be combined with string interpolation in a
useful way. You can follow a `@foo` token with a string
literal. The contents of the string literal will *not* be
@@ -1799,6 +1804,14 @@ sections:
input: "\"O'Hara's Ale\""
output: ["\"echo 'O'\\\\''Hara'\\\\''s Ale'\""]
+ - program: '@base64'
+ input: '"This is a message"'
+ output: ['"VGhpcyBpcyBhIG1lc3NhZ2U="']
+
+ - program: '@base64d'
+ input: '"VGhpcyBpcyBhIG1lc3NhZ2U="'
+ output: ['"This is a message"']
+
- title: "Dates"
body: |