We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5846014 + 6736131 commit 90021adCopy full SHA for 90021ad
src/main/javascript/view/MainView.js
@@ -111,7 +111,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
111
112
addResource: function(resource, auths){
113
// Render a resource and add it to resources li
114
- resource.id = resource.id.replace(/[[\]{}()*+?,\\/^$|#\s]/g, '_');
+ resource.id = resource.id.replace(/[^a-zA-Z\d]/g, function(str) { return str.charCodeAt(0); });
115
116
// Make all definitions available at the root of the resource so that they can
117
// be loaded by the JSonEditor
0 commit comments