Skip to content

Commit

Permalink
improve match_all_characters_regex constant
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Oct 24, 2022
1 parent ed2a348 commit fd49432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scriptlets/trusted-replace-xhr-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function trustedReplaceXhrResponse(source, pattern = '', replacement = ''
const nativeOpen = window.XMLHttpRequest.prototype.open;
const nativeSend = window.XMLHttpRequest.prototype.send;

const MATCH_ALL_CHARACTERS_REGEX = /[\s\S]/;
const MATCH_ALL_CHARACTERS_REGEX = toRegExp();

let shouldReplace = false;
let xhrData;
Expand Down

0 comments on commit fd49432

Please sign in to comment.