Skip to content

Commit 8e5a9ad

Browse files
committed
change the meaning of * from .+ to .*
1 parent 905a789 commit 8e5a9ad

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
@@ -66,7 +66,7 @@ the legacy endpoint scope.
6666

6767
The crates scope can be left empty to allow the token to act on all the crates
6868
owned by the user, or it can contain the comma-separated list of crate names
69-
the token can interact with. Crate names can contain `*` to match one or more
69+
the token can interact with. Crate names can contain `*` to match zero or more
7070
characters.
7171

7272
For example, a crates scope of `serde,serde-*` allows the token to act on the
@@ -116,7 +116,7 @@ following these rules:
116116

117117
* **`^`** is added at the start of the pattern, and **`$`** is added at the end of it.
118118
* **`,`** is desugared into `|`, separating multiple patterns.
119-
* **`*`** is desugared into `.+`, matching one or more characters greedily.
119+
* **`*`** is desugared into `.*`, matching zero or more characters greedily.
120120
* All other characters are quoted to prevent them from having a special meaning.
121121

122122
As an example, the following pattern:

0 commit comments

Comments
 (0)