Commit aa00d38
Support anonymous gists by making username optional in regex
Anonymous gists don't have a username in the URL path (e.g.,
gist.github.com/1234567890abcdef). Updated regex to make the username
segment optional using non-capturing group (?:[^/]+/)? so both
user-owned and anonymous gists are supported.
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>1 parent ff342c9 commit aa00d38
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
| 1182 | + | |
1182 | 1183 | | |
1183 | | - | |
| 1184 | + | |
1184 | 1185 | | |
1185 | 1186 | | |
1186 | 1187 | | |
| |||
0 commit comments