Skip to content

Commit 9b874ec

Browse files
fix spaces before the comments
1 parent 5e76322 commit 9b874ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reverse_engineering/helpers/dataHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ const getModelContent = (pathData, fieldOrder, callbacksComponent) => {
869869

870870
const getOpenAPIJsonSchema = (data, fileName, extension) => {
871871
const schema = extension !== '.json' ? commonHelper.convertYamlToJson(data) : data;
872-
const openAPISchema = typeof schema === 'string' ? jsonComment.parse(schema.replace(/^#.+$/mg, '')) : schema;
872+
const openAPISchema = typeof schema === 'string' ? jsonComment.parse(schema.replace(/^\s*#.+$/mg, '')) : schema;
873873
const updatedOpenApiSchema = copyPathItemLevelParametersToOperationObject(openAPISchema);
874874
const openAPISchemaWithModelName = Object.assign({}, updatedOpenApiSchema, {
875875
modelName: fileName

0 commit comments

Comments
 (0)