Skip to content

Commit

Permalink
reverting version bump, adding test as per review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fuenfundachtzig committed Apr 10, 2024
1 parent 8f29383 commit 4df6d14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dedent",
"version": "1.5.2",
"version": "1.5.1",
"description": "A string tag that strips indentation from multi-line strings. ⬅️",
"keywords": [
"dedent",
Expand Down
4 changes: 4 additions & 0 deletions src/dedent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,4 +232,8 @@ describe("dedent", () => {
it("works with escaped tabs for indentation", () => {
expect(dedent("\t\tfirst\n\t\t\tsecond\n\t\t\t\tthird")).toMatchSnapshot();
});

it("does not replace \\n when called as a function", () => {
expect(dedent(`\\nu`)).toBe("\\nu");
});
});

0 comments on commit 4df6d14

Please sign in to comment.