Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Commit d072720

Browse files
committed
Fix JSONPath function quoting strings
1 parent bbf2b6d commit d072720

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • plugins/template-function-json/src

plugins/template-function-json/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export const plugin: PluginDefinition = {
1919
if (Array.isArray(filtered)) {
2020
filtered = filtered[0];
2121
}
22+
if (typeof filtered === 'string') {
23+
return filtered;
24+
}
2225

2326
if (args.values.formatted) {
2427
return JSON.stringify(filtered, null, 2);

0 commit comments

Comments
 (0)