mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
- Fixed lgtm comments
This commit is contained in:
parent
3185b1bd14
commit
e1de003704
@ -57,7 +57,7 @@ const getPlugins = () => {
|
||||
return plugins;
|
||||
}
|
||||
return [...plugins, terser()];
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
input: './src/index.ts',
|
||||
|
||||
@ -3,7 +3,7 @@ import type { Enum } from '../../../client/interfaces/Enum';
|
||||
export function getEnumFromDescription(description: string): Enum[] {
|
||||
// Check if we can find this special format string:
|
||||
// None=0,Something=1,AnotherThing=2
|
||||
if (/^(\w+=[0-9]+,?)+$/g.test(description)) {
|
||||
if (/^(\w+=[0-9]+)/g.test(description)) {
|
||||
const matches = description.match(/(\w+=[0-9]+,?)/g);
|
||||
if (matches) {
|
||||
// Grab the values from the description
|
||||
|
||||
@ -3,7 +3,7 @@ import type { Enum } from '../../../client/interfaces/Enum';
|
||||
export function getEnumFromDescription(description: string): Enum[] {
|
||||
// Check if we can find this special format string:
|
||||
// None=0,Something=1,AnotherThing=2
|
||||
if (/^(\w+=[0-9]+,?)+$/g.test(description)) {
|
||||
if (/^(\w+=[0-9]+)/g.test(description)) {
|
||||
const matches = description.match(/(\w+=[0-9]+,?)/g);
|
||||
if (matches) {
|
||||
// Grab the values from the description
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user