You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's bug in above code that os.EOL need to be replaced by '\n'. In case in Windows system, but line is broken only with '\n', os.EOL in Windows is '\r\n'.
const endBlock = /// #endif$/
This above still have bug that change it like this const endBlock = /// #endif/
The text was updated successfully, but these errors were encountered:
moyuanz
changed the title
bug at split file content to lines
bug at splitting file content to lines
Aug 31, 2020
const sourceByLine = source.split(os.EOL)
There's bug in above code that os.EOL need to be replaced by '\n'. In case in Windows system, but line is broken only with '\n', os.EOL in Windows is '\r\n'.
const endBlock = /// #endif$/
This above still have bug that change it like this const endBlock = /// #endif/
The text was updated successfully, but these errors were encountered: