Skip to content

Commit 83a2370

Browse files
committed
- Fixed a minor issue with rest api version
1 parent 4a967af commit 83a2370

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/openApi/v2/parser/getServiceVersion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
* @param version
55
*/
66
export function getServiceVersion(version = '1.0'): string {
7-
return version.replace(/^v/gi, '');
7+
return String(version).replace(/^v/gi, '');
88
}

src/openApi/v3/parser/getServiceVersion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
* @param version
55
*/
66
export function getServiceVersion(version = '1.0'): string {
7-
return version.replace(/^v/gi, '');
7+
return String(version).replace(/^v/gi, '');
88
}

0 commit comments

Comments
 (0)