Skip to content
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

[Bug]: When text is an empty string, highlight will be into the infinite loop #14166

Closed
1 task done
blankPen opened this issue Jan 17, 2022 · 1 comment · Fixed by #14165
Closed
1 task done

[Bug]: When text is an empty string, highlight will be into the infinite loop #14166

blankPen opened this issue Jan 17, 2022 · 1 comment · Fixed by #14165
Labels
i: needs triage outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@blankPen
Copy link
Contributor

💻

  • Would you like to work on a fix?

How are you using Babel?

Programmatic API (babel.transform, babel.parse)

Input code

const h = require('@babel/highlight').default;
h('', { forceColor: true });

Configuration file name

.babelrc.js

Configuration

No response

Current and expected behavior

Should not be into the infinite loop

Environment

  • @babel/highlight:7.16.7

Possible solution

#14165

Additional context

No response

@babel-bot
Copy link
Collaborator

Hey @blankPen! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.

@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Apr 20, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: needs triage outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants