-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Match cursorSave and cursorRestore escape codes #45
Conversation
Co-authored-by: Qix <Qix-@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I'm a bit surprised the regex didn't cover these codes already.
Will defer to @sindresorhus.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#test.js
fixes #36
I've added additional tests that iterates over all the
ansi-escapes
exported strings and functions. If it's a function, I just pass in some random data.If you want to see something done differently, let me know 🙏 .