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

Commit

Permalink
Merge pull request #2 from bamnet/patch-1
Browse files Browse the repository at this point in the history
Replace - with _ in callback generation
  • Loading branch information
ebidel committed May 28, 2014
2 parents 64686a3 + 601671c commit a9b5d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-shared-lib.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}

function nameFromUrl(url) {
return url.replace(/[\:\/\%\?\&\.\=]/g, '_') + '_api';
return url.replace(/[\:\/\%\?\&\.\=\-]/g, '_') + '_api';
}

var Loader = function(name, url, callbackName) {
Expand Down

0 comments on commit a9b5d3a

Please sign in to comment.