Skip to content

Commit cffcaf8

Browse files
committed
fix regex
1 parent 5c43b7d commit cffcaf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-crates-io-token-scopes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ existing set of endpoints in that scope.
114114
The pattern for the crate scope is desugared into a regular expression,
115115
following these rules:
116116

117-
* **`^`** is added at the start of the pattern, and **`$`** is added at the end of it.
117+
* **`^(`** is added at the start of the pattern, and **`)$`** is added at the end of it.
118118
* **`,`** is desugared into `|`, separating multiple patterns.
119119
* **`*`** is desugared into `.*`, matching zero or more characters greedily.
120120
* All other characters are quoted to prevent them from having a special meaning.
@@ -128,7 +128,7 @@ foo,bar-*
128128
... is desugared into the following regex:
129129

130130
```
131-
^foo|bar\-.*$
131+
^(foo|bar\-.*)$
132132
```
133133

134134
Any combination of those characters is allowed, but crates.io might define a

0 commit comments

Comments
 (0)