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.
1 parent 97a806f commit a3d74a9Copy full SHA for a3d74a9
demo/demo-server/api.js
@@ -26,6 +26,7 @@ async function apiRequest(ctx) {
26
}
27
} catch (e) {
28
body = wrapError(e);
29
+ console.error(e);
30
31
/* eslint-disable require-atomic-updates */
32
if (body.code) {
demo/demo-server/api/amf-service/api-search.js
@@ -134,7 +134,7 @@ export class ApiSearch {
134
contentType: 'application/json'
135
};
136
137
- const oasMatch = data.match(/openapi|swagger(?:\s*)?:(?:\s*)("|')?(\d\.\d*)("|')?/im);
+ const oasMatch = data.match(/(?:openapi|swagger)[^\s*]?:(?:\s*)("|')?(\d\.\d)("|')?/im);
138
if (oasMatch) {
139
const v = oasMatch[2].trim();
140
return {
0 commit comments