Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Dangit, hopefully got all the bugs now...
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Gadsby <schme16@gmail.com>
  • Loading branch information
schme16 committed May 10, 2015
1 parent d7ff50a commit c182b43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion website/index.html
Expand Up @@ -5,7 +5,6 @@
<meta name="viewport" content="width=device-width">
<meta name="description" content="GitCDN.xyz serves raw files directly from GitHub with proper Content-Type headers and super fast .">
<link rel="stylesheet" href="sys/css/base.css">
<script src="sys/js/url-formatter.js"></script>
<title>GitCDN</title>
</head>

Expand Down Expand Up @@ -41,5 +40,6 @@ <h2>Use this URL to always get the latest commit</h2>
&copy; 2015 <a href="http://twitter.com/schme16">@schme16</a>. This softawre is open source, you can contribute to it at https://github.com/schme16/gitcdn.xyz Special thanks to <a href="http://wonko.com/">Ryan Grove</a> for RawGit!
</p>
</footer>
<script src="sys/js/url-formatter.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions website/sys/js/url-formatter.js
Expand Up @@ -8,6 +8,7 @@
REGEX_RAW_URL = /^(https?):\/\/(?:gist|raw)\.github(?:usercontent)?\.com\/([^\/]+\/[^\/]+\/[^\/]+|[0-9A-Za-z-]+\/[0-9a-f]+\/raw)\/(.+)/i,
REGEX_REPO_URL = /^(https?):\/\/github\.com\/(.+?)\/(.+?)\/(?:(?:blob|raw)\/)?(.+?\/.+)/i,
devEl = document.getElementById('url-dev'),
urlEl = document.getElementById('url');

urlEl.addEventListener('input', function () {
var url = decodeURIComponent(urlEl.value.trim());
Expand Down

0 comments on commit c182b43

Please sign in to comment.