Skip to content

Commit

Permalink
Fixed extra spaces in customize input.
Browse files Browse the repository at this point in the history
  • Loading branch information
nchapman committed Apr 14, 2010
1 parent 78009ab commit f2bda00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/messages/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<script>
Event.observe("builder", "submit", function(e) {
var subdomain = $F("subdomain").toLowerCase().replace(/\s+/g, ".").replace(/[^a-z\.\_]/g, "");
var subdomain = $F("subdomain").toLowerCase().replace(/\s+/g, ".").replace(/[^a-z\.\_]/g, "").replace(/\.{2,}/, ".");

if (subdomain != "")
window.location = "http://" + subdomain + ".<%= @site.domain %>";
Expand Down

0 comments on commit f2bda00

Please sign in to comment.