Skip to content

Commit

Permalink
test(index): add strict u flag to all regex patterns (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Jul 11, 2023
1 parent a95e2e4 commit a21ca51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe("Convert function", () => {
path.joinSafe(testBinaryPath, "unrtf"),
["--version"]
);
version = /^(\d{1,2}\.\d{1,2}\.\d{1,2})/i.exec(stderr)[1];
version = /^(\d{1,2}\.\d{1,2}\.\d{1,2})/u.exec(stderr)[1];
});

it("Converts RTF if any valid options are set", async () => {
Expand Down

0 comments on commit a21ca51

Please sign in to comment.