lucagrulla / node-tail

The zero dependency Node.js module for tailing a file
https://www.lucagrulla.com/node-tail/
MIT License
467 stars 75 forks source link

Regex #149

Closed jakobrosenberg closed 2 years ago

jakobrosenberg commented 2 years ago

Maybe I'm missing something, but this /\r?n/ seems simpler than /[\r]{0,1}\n/.

lucagrulla commented 2 years ago

yes, your suggestion is a more succinct way to define the same regex expression. Given this is a code styling question rather than an issue, I'll close it.