Skip to content

Commit 2d8e096

Browse files
authored
fix: solving the problem of escaped backslashes in regular expressions. (#1701)
1 parent 8afb1e8 commit 2d8e096

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/adapter/objectPreview/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ export function previewRemoteObject(
6161
context,
6262
valueFormat,
6363
);
64+
65+
if (object.preview?.subtype === 'regexp') return result;
66+
6467
return context.postProcess?.(result) ?? result;
6568
}
6669

0 commit comments

Comments
 (0)