Allow numbers in rustdoc tests commands · rust-lang/rust@6909fea (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 6909fea
Allow numbers in rustdoc tests commands
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -270,7 +270,7 @@ def filter_line(line): | ||
270 | 270 | |
271 | 271 | LINE_PATTERN = re.compile(r''' |
272 | 272 | //@\s+ |
273 | - (?P!?)(?P[A-Za-z]+(?:-[A-Za-z]+)*) | |
273 | + (?P!?)(?P[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*) | |
274 | 274 | (?P.*)$ |
275 | 275 | ''', re.X | re.UNICODE) |
276 | 276 |