Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
baev committed Jan 6, 2025
1 parent 5782bb1 commit d49a524
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/newman-reporter-allure/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,7 @@ class AllureReporter {
}

#escape(val: string) {
return (
val
.replace("\n", "")
.replace("\r", "")
.replace('"', '"')
);
return val.replace("\n", "").replace("\r", "").replace('"', '"');

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This replaces only the first occurrence of '"'.

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This replaces only the first occurrence of "\r".

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This replaces only the first occurrence of "\n".

Check warning

Code scanning / CodeQL

Replacement of a substring with itself Medium

This replaces '"' with itself.
}
}

Expand Down

0 comments on commit d49a524

Please sign in to comment.