fix(runtime): reset lastIndex before reusing regexes#564
Merged
danielroe merged 1 commit intofi3ework:mainfrom Aug 25, 2025
Merged
fix(runtime): reset lastIndex before reusing regexes#564danielroe merged 1 commit intofi3ework:mainfrom
danielroe merged 1 commit intofi3ework:mainfrom
Conversation
✅ Deploy Preview for vite-plugin-checker ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
commit: |
danielroe
approved these changes
Aug 25, 2025
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 6, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 7, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 8, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 10, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 14, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 17, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 18, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 19, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 20, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 21, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 22, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 23, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 25, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
renovate bot
added a commit
to andrei-picus-tink/auto-renovate
that referenced
this pull request
Sep 26, 2025
| datasource | package | from | to | | ---------- | ------------------- | ------ | ------ | | npm | vite-plugin-checker | 0.10.2 | 0.10.3 | ## [v0.10.3](https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.10.3) ##### 🐞 Bug Fixes - **biome**: - Use absolute path in biome diagnostics - by [@KurtGokhan](https://github.com/KurtGokhan) in [#555](fi3ework/vite-plugin-checker#555) [<samp>(4a38b)</samp>](fi3ework/vite-plugin-checker@4a38b03) - **runtime**: - Check for existing overlay element before injecting one - by [@zouhangwithsweet](https://github.com/zouhangwithsweet) in [#563](fi3ework/vite-plugin-checker#563) [<samp>(c742e)</samp>](fi3ework/vite-plugin-checker@c742e7f) - Reset `lastIndex` before reusing regexes - by [@justinbhopper](https://github.com/justinbhopper) in [#564](fi3ework/vite-plugin-checker#564) [<samp>(f4072)</samp>](fi3ework/vite-plugin-checker@f4072d2) ##### [View changes on GitHub](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.10.2...vite-plugin-checker@0.10.3)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes a bug where the
codeFrameREregex will sometimes return false whentest(frame)is run, because thelastIndexis not being reset before each use. This causes a bug where the code frame will sometimes not display in the overlay.