Skip to content

Commit feb9e8d

Browse files
committed
Feature: Allow extracting base64 without metadata prefix
1 parent f4e3287 commit feb9e8d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/BitmapExtension.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ class FromBase64 extends Reporter {
1818
val arr = args(0).getString.split(",")
1919

2020
val base64 =
21-
if (arr.length == 2) {
21+
if (arr.length == 1) {
22+
arr(0)
23+
} else if (arr.length == 2) {
2224
arr(1)
2325
} else {
2426
throw new ExtensionException("This primitive only accepts input that is base64-encoded.")

0 commit comments

Comments
 (0)