Skip to content

Commit 0dd8fea

Browse files
author
Fernando Basello
committed
bug: assure string method is breaking the content if the content has a string template literal.
closes #3
1 parent a4ed967 commit 0dd8fea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/stringValidator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const stringValidator = (param: any): any => {
1212

1313
// Handle strings - convert to template literals
1414
if (typeof param === 'string') {
15-
return `\"${param}\"`;
15+
return JSON.stringify(param);
1616
}
1717

1818
// Handle arrays - process each element

0 commit comments

Comments
 (0)