mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
- Fixed a minor issue with rest api version
This commit is contained in:
parent
4a967af3ac
commit
83a2370d3c
@ -4,5 +4,5 @@
|
||||
* @param version
|
||||
*/
|
||||
export function getServiceVersion(version = '1.0'): string {
|
||||
return version.replace(/^v/gi, '');
|
||||
return String(version).replace(/^v/gi, '');
|
||||
}
|
||||
|
||||
@ -4,5 +4,5 @@
|
||||
* @param version
|
||||
*/
|
||||
export function getServiceVersion(version = '1.0'): string {
|
||||
return version.replace(/^v/gi, '');
|
||||
return String(version).replace(/^v/gi, '');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user