aloisdg / aloisdg/attrithub

Improve argument regex

Aperta
#3 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement help wanted
Lingua principale
Shell
Stelle
0
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Now, I am parsing the argument with this posix regex:

```
(https?://github.com/)([A-Z|a-z|0-9|-]+)(/)([A-Z|a-z|0-9|-]+)(/)?
```

![Regular expression visualization](https://www.debuggex.com/i/8z_J_tLR6aDE5_cN.png)

[Debuggex Demo](https://www.debuggex.com/r/8z_J_tLR6aDE5_cN)

Remember that the regex must be posix only because of bash! No perl regex allowed so no `\w` or `\d`.

If you have any idea to improve it feel free to comment.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.