Last active
June 15, 2019 12:17
-
-
Save tommorris/b7255f5cee13a530ee4b0b2fc5af989c to your computer and use it in GitHub Desktop.
Little code sample for blog post
This file contains 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 characters
PREFIXES = ["https://tommorris.org"] | |
def prefix_check(url): | |
for prefix in PREFIXES: | |
if url.startswith(prefix): | |
return url | |
return "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please correct if i am not wrong, seems like we have typo issue as PREFIX is not define. i think it should be prefix.