Commit 0dcb985
committed
Improve
When the replacement starts with `json:`, it will be first
decoded using JSON.parse(). Example:
example.com##+js(trusted-replace-outbound-text, somefn, json:"ok")
The doublequotes are required since this is what JSON.parse()
expects as a valid JSON string.trusted-replace-outbound-text scriptlet1 parent f5f042a commit 0dcb985
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4906 | 4906 | | |
4907 | 4907 | | |
4908 | 4908 | | |
4909 | | - | |
4910 | | - | |
| 4909 | + | |
| 4910 | + | |
4911 | 4911 | | |
4912 | 4912 | | |
4913 | 4913 | | |
4914 | 4914 | | |
4915 | | - | |
4916 | | - | |
| 4915 | + | |
| 4916 | + | |
| 4917 | + | |
| 4918 | + | |
| 4919 | + | |
4917 | 4920 | | |
4918 | 4921 | | |
4919 | 4922 | | |
| |||
4923 | 4926 | | |
4924 | 4927 | | |
4925 | 4928 | | |
4926 | | - | |
| 4929 | + | |
4927 | 4930 | | |
4928 | 4931 | | |
4929 | 4932 | | |
| |||
0 commit comments