Skip to content

Commit

Permalink
fix: adding swagger match to API file search
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodek committed Sep 25, 2019
1 parent b75e566 commit 75208a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/demo-server/api/amf-service/api-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class ApiSearch {
contentType: 'application/json'
};
}
const oasMatch = data.match(/openapi(?:\s*)?:(?:\s*)"?(\d\.\d*)"?/im);
const oasMatch = data.match(/openapi|swagger(?:\s*)?:(?:\s*)"?(\d\.\d*)"?/im);
if (oasMatch) {
const v = oasMatch[1].trim();
return {
Expand Down

0 comments on commit 75208a4

Please sign in to comment.