Skip to content

Commit e1de003

Browse files
committed
- Fixed lgtm comments
1 parent 3185b1b commit e1de003

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const getPlugins = () => {
5757
return plugins;
5858
}
5959
return [...plugins, terser()];
60-
}
60+
};
6161

6262
module.exports = {
6363
input: './src/index.ts',

src/openApi/v2/parser/getEnumFromDescription.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Enum } from '../../../client/interfaces/Enum';
33
export function getEnumFromDescription(description: string): Enum[] {
44
// Check if we can find this special format string:
55
// None=0,Something=1,AnotherThing=2
6-
if (/^(\w+=[0-9]+,?)+$/g.test(description)) {
6+
if (/^(\w+=[0-9]+)/g.test(description)) {
77
const matches = description.match(/(\w+=[0-9]+,?)/g);
88
if (matches) {
99
// Grab the values from the description

src/openApi/v3/parser/getEnumFromDescription.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Enum } from '../../../client/interfaces/Enum';
33
export function getEnumFromDescription(description: string): Enum[] {
44
// Check if we can find this special format string:
55
// None=0,Something=1,AnotherThing=2
6-
if (/^(\w+=[0-9]+,?)+$/g.test(description)) {
6+
if (/^(\w+=[0-9]+)/g.test(description)) {
77
const matches = description.match(/(\w+=[0-9]+,?)/g);
88
if (matches) {
99
// Grab the values from the description

0 commit comments

Comments
 (0)