Skip to content

Commit

Permalink
Use build a URL pattern instead of hand-creating a dictionary.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgiuca committed Mar 25, 2024
1 parent ac816f0 commit 8667b16
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -533,15 +533,10 @@ <h3>
</li>
<li>For each |entry:URLPatternInit| of |json|["scope_patterns"]:
<ol>
<li>If |entry| is not a {{URLPatternInput}}, continue.
</li>
<li>If |entry| is a {{URLPatternInit}}, set |entry|["baseURL"]
to |manifest URL|, and let |base URL| be null. Otherwise, let
|base URL| be |manifest URL|.
</li>
<li>Let |pattern:URL pattern| be the result of [=URL
pattern/create|creating=] a [=URL pattern=] given |entry| and
|base URL|. If this process throws, continue.
<li>Let |pattern:URL pattern| be the result of [=build a URL
pattern from an infra value|building a URL pattern from an
infra value=] |entry| given |manifest URL|. If this process
throws or returns null, continue.
</li>
<li>Append |pattern| to |processed scope patterns|.
</li>
Expand Down

0 comments on commit 8667b16

Please sign in to comment.