Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Support localhost URLs for webapp manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar303 committed Jan 25, 2012
1 parent 58a004f commit 28a974d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media/js/zamboni/devhub.js
Expand Up @@ -100,8 +100,8 @@ $(document).ready(function() {
$('#upload-webapp-url').bind("keyup change blur", function(e) {
var $this = $(this),
$button = $('#validate_app'),
// Ensure it's at least "protocol://something.tld/something.(webapp/json)"
match = $this.val().match(/^(.+):\/\/(.+)\.(.+)\/(.+)\.(webapp|json)$/);
// Ensure it's at least "protocol://host/something.(webapp/json)"
match = $this.val().match(/^(.+):\/\/(.+)\/(.+)\.(webapp|json)$/);

if($this.attr('data-input') != $this.val()) {
// Show warning if 8+ characters have been typed but there's no protocol.
Expand Down

0 comments on commit 28a974d

Please sign in to comment.