Skip to content

Commit

Permalink
update v1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed May 15, 2023
1 parent 5189d11 commit 9618dbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scriptlets/prevent-eval-if.js
Expand Up @@ -4,6 +4,7 @@ import { toRegExp, hit } from '../helpers/index';

/**
* @scriptlet prevent-eval-if
*
* @description
* Prevents page to use eval matching payload.
*
Expand All @@ -24,6 +25,8 @@ import { toRegExp, hit } from '../helpers/index';
* ! Prevents eval if it matches 'test'
* example.org#%#//scriptlet('prevent-eval-if', 'test')
* ```
*
* @added v1.0.4.
*/
export function preventEvalIf(source, search) {
const searchRegexp = toRegExp(search);
Expand Down

0 comments on commit 9618dbb

Please sign in to comment.