Skip to content

Commit

Permalink
improve pattern and replacement args description
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Oct 20, 2022
1 parent 15f743d commit 12a5d9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scriptlets/trusted-replace-xhr-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ import {
*
* **Syntax**
* ```
* example.org#%#//scriptlet('trusted-replace-xhr-response', pattern, replacement[, propsToMatch])
* example.org#%#//scriptlet('trusted-replace-xhr-response'[, pattern, replacement[, propsToMatch]])
* ```
*
* - pattern - required, argument for matching contents of responseText that should be replaced.
* - pattern - optional, argument for matching contents of responseText that should be replaced. If set, replacement is required.
* Possible values:
* - string
* - regular expression
* - '*' to match all text content
* - replacement - required, string to replace matched content with. Empty string to remove content.
* - replacement - optional, required, if pattern is set. String to replace matched content with. Empty string to remove content.
* - propsToMatch — optional, string of space-separated properties to match for extra condition; possible props:
* - string or regular expression for matching the URL passed to `.open()` call;
* - colon-separated pairs name:value where
Expand Down

0 comments on commit 12a5d9d

Please # to comment.