mirror of
https://gitee.com/openharmony/napi_generator
synced 2024-11-23 08:20:01 +00:00
fix h2dts bug
Signed-off-by: gou-jingjing <goujingjing@kaihong.com>
This commit is contained in:
parent
5b6a1e1562
commit
e1d8426264
@ -54,6 +54,10 @@ export function removeTab(str: string) {
|
||||
str = replaceAll(str, '\r\n', '');
|
||||
str = replaceAll(str, '\r', '');
|
||||
str = replaceAll(str, '\n', '');
|
||||
// 去除class中的public: protected: private:
|
||||
str = replaceAll(str, 'public:', '');
|
||||
str = replaceAll(str, 'protected:', '');
|
||||
str = replaceAll(str, 'private:', '');
|
||||
while (str[0] === ' ') {
|
||||
str = str.replace(' ' , '')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user