In https://github.com/tcvan0707/txt2html/blob/main/src/txt2html.js#L64-L77 you are using a pattern of code that should be avoided. Your catch block is providing an alternate code path. In reality, the catch should only be used for exceptional circumstances. If you have code that might happen, move it to an if/else style.
In https://github.com/tcvan0707/txt2html/blob/main/src/txt2html.js#L64-L77 you are using a pattern of code that should be avoided. Your
catchblock is providing an alternate code path. In reality, thecatchshould only be used for exceptional circumstances. If you have code that might happen, move it to anif/elsestyle.