{"action":"opened","issue":{"url":"https://api.github.com/repos/alrusdi/jquery-plugin-query-object/issues/8","labels_url":"https://api.github.com/repos/alrusdi/jquery-plugin-query-object/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/alrusdi/jquery-plugin-query-object/issues/8/comments","events_url":"https://api.github.com/repos/alrusdi/jquery-plugin-query-object/issues/8/events","html_url":"https://github.com/alrusdi/jquery-plugin-query-object/issues/8","id":66004332,"number":8,"title":"Script drops leading 0","user":{"login":"zwick","id":1871037,"avatar_url":"https://avatars.githubusercontent.com/u/1871037?v=3","gravatar_id":"","url":"https://api.github.com/users/zwick","html_url":"https://github.com/zwick","followers_url":"https://api.github.com/users/zwick/followers","following_url":"https://api.github.com/users/zwick/following{/other_user}","gists_url":"https://api.github.com/users/zwick/gists{/gist_id}","starred_url":"https://api.github.com/users/zwick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zwick/subscriptions","organizations_url":"https://api.github.com/users/zwick/orgs","repos_url":"https://api.github.com/users/zwick/repos","events_url":"https://api.github.com/users/zwick/events{/privacy}","received_events_url":"https://api.github.com/users/zwick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-02T20:22:55Z","updated_at":"2015-04-02T20:22:55Z","closed_at":null,"body":"When there is a number in the URL parameters that has a leading 0 (such as a zipcode), the 0 is dropped when using your jQuery plugin to append more values to the URL.\r\n\r\nWe were able to fix this with the following change to line 99:\r\n\r\nOriginal:\r\nelse if (/^[+-]?[0-9]+$/.test(val)) // simple int regex\r\n\r\nNew:\r\nelse if (/^[+-]?[1-9][0-9]*$/.test(val)) // simple int regex \r\n\r\n\r\nThought I would share this in case anyone else has this similar issue.  Not sure if it is a perfect solution, but it does now maintain the value."}}