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

Commit

Permalink
Bug fix: trim input address
Browse files Browse the repository at this point in the history
  • Loading branch information
timwis committed Dec 1, 2012
1 parent abd22db commit 590be71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/script.js
Expand Up @@ -21,7 +21,7 @@ var controller = {
*/
,summary: function(eventType, matchObj, ui, page, evt) {
// Sanitize the user's input (the address)
var input = decodeURIComponent(matchObj[1].replace(/\+/g, "%20")).replace(/\.+$/, "");
var input = $.trim(decodeURIComponent(matchObj[1].replace(/\+/g, "%20")).replace(/\.+$/, ""));

// If we were just looking at this page, it's already rendered so don't do anything
if(cache.summary != matchObj[0]) {
Expand Down

0 comments on commit 590be71

Please sign in to comment.