aloisdg / aloisdg/attrithub

Improve argument regex

Đang mở
#3 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement help wanted
Ngôn ngữ chính
Shell
Star
0
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.