Skip to content

Commit 401837b

Browse files
timkuijstenrichardlau
authored andcommitted
doc: fix some policy scope typos
PR-URL: #51234 Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent bd183ef commit 401837b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/permissions.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ different strings to point to the same module (such as excluding the extension).
178178

179179
Specifier strings are canonicalized but not resolved prior to be used for
180180
matching in order to have some compatibility with import maps, for example if a
181-
resource `file:///C:/app/server.js` was given the following redirection from a
181+
resource `file:///C:/app/utils.js` was given the following redirection from a
182182
policy located at `file:///C:/app/policy.json`:
183183

184184
```json
@@ -303,15 +303,15 @@ delegate to the next relevant scope for `file:///C:/app/bin/main.js`, `"file:"`.
303303

304304
This determines the policy for all file based resources within `"file:///C:/"`.
305305
This is not in the `"scopes"` field of the policy and would be skipped. It would
306-
not be used for `file:///C:/app/bin/main.js` unless `"file:///"` is set to
307-
cascade or is not in the `"scopes"` of the policy.
306+
not be used for `file:///C:/app/bin/main.js` unless `"file:///C:/app/"` is set
307+
to cascade or is not in the `"scopes"` of the policy.
308308

309309
4. `"file:///"`
310310

311311
This determines the policy for all file based resources on the `localhost`. This
312312
is not in the `"scopes"` field of the policy and would be skipped. It would not
313-
be used for `file:///C:/app/bin/main.js` unless `"file:///"` is set to cascade
314-
or is not in the `"scopes"` of the policy.
313+
be used for `file:///C:/app/bin/main.js` unless `"file:///C:/"` is set to
314+
cascade or is not in the `"scopes"` of the policy.
315315

316316
5. `"file:"`
317317

0 commit comments

Comments
 (0)