Skip to content

Commit

Permalink
chore: fix call chain
Browse files Browse the repository at this point in the history
  • Loading branch information
peternhale committed Aug 2, 2024
1 parent 8d7ebd9 commit fe127ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/salesforcedx-utils-vscode/src/helpers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const fileUtils = {
};

export const stripAnsiInJson = (str: string, hasJson: boolean): string => {
return str && hasJson ? str.replaceAll(ansiRegex(), '') : str;
return str && hasJson ? stripAnsi(str) : str;
};

export const stripAnsi = (str: string): string => {
Expand Down

0 comments on commit fe127ee

Please sign in to comment.