-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configurable splitPattern in line-navigator.js #3
Comments
Added, you can pass it to FileNavigator or LineNavigator constructor as you've asked:
Please notice, that both That is limiting in the sense that every line have to end with newLineCode byte and any newLineCode will be treated as line end, so one can't have line separator with two or more characters. For example: You can't use "END" as separator for "EXAMPLE DATA:ENDLine oneENDline twoENDline threeEND" file, as newLineCode have to by P.S. - module now available as NPM package too. |
Thanks for the update. I want to explain my case, first of all (we all know this): So, Is it possible to make it work when using '\r' too?. Thanks again. |
Right now line navigator supports both You can also make it Mac OS friendly by accepting
So far I see only one technical possibility to make Thanks for your interest and let me know if this solution fits your case. |
It's OK, I will detect it before use navigator to pass the options according to the case. Thank you again. |
Hey, just in case you're still using line-navigator check out latest version. Now it supports all types of line endings: CR LF, LF, CR. Also, it was totally refactored, cleaned, and few hidden issues fixed. |
Could be possible to set the splitPattern variable using the options object in the FileNavigator and LineNavigator constructor?
The text was updated successfully, but these errors were encountered: