Last active
May 24, 2019 10:51
-
-
Save onlyphantom/e05d79508cb6a4b6148ac5dbe6b6b1fe to your computer and use it in GitHub Desktop.
Revisions
-
onlyphantom revised this gist
May 24, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,4 +5,4 @@ import re def validate_repo_url(value): reg = re.compile('^([a-zA-Z\d]{1}[-a-zA-Z\d]+)(/){1}([\-\w]+)$') -
onlyphantom revised this gist
May 24, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,4 +5,4 @@ import re def validate_repo_url(value): reg = re.compile('^([a-zA-Z\d]{1}[-A-z\d]+)(/){1}([\-\w]+)$') -
onlyphantom created this gist
May 24, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ # for username: # Username may only contain alphanumeric characters or single hyphens, and cannot begin or end with a hyphen # for repo url: # any valid alphanumeric including underscores import re def validate_repo_url(value): reg = re.compile('^([A-z\d]){1}([-A-z\d]+)(/){1}([\-\w]+)$')