Skip to content

Commit 66cd429

Browse files
authored
Update lib_amp.ssjs
Fixed missing ',' based on issue #8
1 parent 05e7b6c commit 66cd429

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/lib_amp.ssjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function SHA1(string,encoding) {
228228
// parameters
229229
amp += "'" + string + "'";
230230
if(encoding) {
231-
amp += "'" + encoding + "'";
231+
amp += ",'" + encoding + "'";
232232
}
233233
// function close
234234
amp += ") ";
@@ -262,7 +262,7 @@ function SHA256(string,encoding) {
262262
// parameters
263263
amp += "'" + string + "'";
264264
if(encoding) {
265-
amp += "'" + encoding + "'";
265+
amp += ",'" + encoding + "'";
266266
}
267267
// function close
268268
amp += ") ";
@@ -296,7 +296,7 @@ function SHA512(string,encoding) {
296296
// parameters
297297
amp += "'" + string + "'";
298298
if(encoding) {
299-
amp += "'" + encoding + "'";
299+
amp += ",'" + encoding + "'";
300300
}
301301
// function close
302302
amp += ") ";
@@ -508,4 +508,4 @@ function GetJWTByKeyName(key,algorithm,payload) {
508508
amp += "]\%\%";
509509

510510
return Platform.Function.TreatAsContent(amp);
511-
}
511+
}

0 commit comments

Comments
 (0)