🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@abrahamguo
Copy link
Contributor

PR Checklist

Overview

While looking into other website issues, I noticed that @kirkwaiblinger's work in #11558 introduced a runtime error, because it removed a g flag from a regular expression that is passed to String#matchAll, which does require a g flag.

This PR fixes this issue, as well as enabling regexp/no-missing-g-flag (which did successfully identify this issue) to prevent this from occurring again.

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @abrahamguo!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint.

@netlify
Copy link

netlify bot commented Sep 26, 2025

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit f1c142e
🔍 Latest deploy log https://app.netlify.com/projects/typescript-eslint/deploys/68d6c6c4bb95280008fd064f
😎 Deploy Preview https://deploy-preview-11645--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 95 (🟢 up 2 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link

nx-cloud bot commented Sep 26, 2025

View your CI Pipeline Execution ↗ for commit f1c142e

Command Status Duration Result
nx run-many -t lint ✅ Succeeded 3m 12s View ↗
nx run-many -t typecheck ✅ Succeeded 1m 58s View ↗
nx test eslint-plugin-internal --coverage=false ✅ Succeeded 5s View ↗
nx test typescript-estree --coverage=false ✅ Succeeded 2s View ↗
nx run integration-tests:test ✅ Succeeded 5s View ↗
nx run types:build ✅ Succeeded 6s View ↗
nx test eslint-plugin --coverage=false ✅ Succeeded 3s View ↗
nx run generate-configs ✅ Succeeded 6s View ↗
Additional runs (27) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2025-09-26 17:06:41 UTC

@abrahamguo abrahamguo changed the title fix(repo): lint for missing g flag fix: lint for missing g flag Sep 26, 2025
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks as always! ✨

@JoshuaKGoldberg JoshuaKGoldberg added the 1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge label Sep 26, 2025
@bradzacher bradzacher changed the title fix: lint for missing g flag chore(website): lint for missing g flag Sep 27, 2025
@bradzacher bradzacher merged commit 7ceed17 into typescript-eslint:main Sep 27, 2025
67 of 70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants