Skip to content

Commit

Permalink
Merge pull request #22 from Trott/valid-id-chars-only
Browse files Browse the repository at this point in the history
alphanumerics and _ in ids only
  • Loading branch information
Trott committed Jul 18, 2014
2 parents 00082d1 + c4ba4b3 commit f24ce53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
@@ -1,4 +1,4 @@
var id = location.search.substring(1) || "1"; var id = location.search.substring(1).replace(/\W/g, '') || "1";
d3.json('data/' + id + '.json', function (error, links) { d3.json('data/' + id + '.json', function (error, links) {
if (error) { if (error) {
d3.select(".visualization").remove(); d3.select(".visualization").remove();
Expand Down

0 comments on commit f24ce53

Please sign in to comment.