Skip to content

Commit

Permalink
Merge pull request #169 from aspida/copy-of-137
Browse files Browse the repository at this point in the history
Copy of 137
  • Loading branch information
Hasu authored Feb 3, 2022
2 parents bc202ef + fb565ca commit 21cd8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buildV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default (
}

if (target.responses) {
const code = Object.keys(target.responses).find(code => code.startsWith('20'))
const code = Object.keys(target.responses).find(code => code.match(/^(20\d|30\d)$/))
if (code) {
params.push({
name: 'status',
Expand Down

0 comments on commit 21cd8bb

Please sign in to comment.