Skip to content

Commit

Permalink
fix(index): escape regexp quantifier characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Jul 6, 2023
1 parent f937109 commit fbb7fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class UnRTF {
throw new Error("File missing");
}
// Check for RTF specific magic number
if (!/^{\\rtf/.test(buff.toString())) {
if (!/^\{\\rtf/.test(buff.toString())) {
throw new Error(
"File is not the correct media type, expected 'application/rtf'"
);
Expand Down

0 comments on commit fbb7fa5

Please sign in to comment.