Skip to content

Commit 0bed945

Browse files
committed
trim
1 parent 7cb8a0d commit 0bed945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/programmers/internal/json_schema_jsDocTags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const json_schema_jsDocTags = <Schema extends OpenApi.IJsonSchema>(
1111

1212
const value: string | undefined = tag.text
1313
?.filter((s) => s.kind === "text")
14-
.map((s) => s.text.split("\r\n").join("\n"))[0];
14+
.map((s) => s.text.trim().split("\r\n").join("\n"))[0];
1515
if (value === undefined) continue;
1616
else (schema as any)[tag.name] = cast(value);
1717
}

0 commit comments

Comments
 (0)