aloisdg / aloisdg/attrithub

Improve argument regex

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Shell
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.