Skip to content

Commit

Permalink
refactor(index): remove redundant multi line regex flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Mar 31, 2023
1 parent 4679b8e commit a1c5aca
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 @@ -163,7 +163,7 @@ class UnRTF {
throw new Error("File missing");
}
// Check for RTF specific magic number
if (!/^{\\rtf/m.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 a1c5aca

Please sign in to comment.