-
-
Notifications
You must be signed in to change notification settings - Fork 168
fix(requireParam): update return type to include foundIndex and tagLineCount #1531
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
fix(requireParam): update return type to include foundIndex and tagLineCount #1531
Conversation
Great to have a fix. Can you also add tests in You can test locally, e.g., with |
@brettz9 i pushed the tests |
bb71eee
to
ee1c33d
Compare
Glad to see this... However, it seems that the test passes even before your changes. Can you add a minimal case which used to fail but no longer does? |
Also, I don't know if your fix can improve this, but as per #540 , we have a couple other |
39ba9c8
to
e0fac9f
Compare
e0fac9f
to
08edaf6
Compare
@brettz9 Hello, sorry, I am a bit time-limited currently as I am moving... so did not see your comments, just now, the thing is that i can very easily show you on quick call or record the video and show what is the problem. On the other stuff, I would really like to look into that, but yeah, firstly I am moving AND I have 2 deadlines coming. So I can look only later. This PR was something we really needed, so we have it in our priv repo as patch and waiting to be merged. |
🎉 This PR is included in version 60.4.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks for the report and fix! |
Update the return type of the
findExpectedIndex
function to includefoundIndex
andtagLineCount
. Adjust the logic in the calling function to utilize the new return structure, ensuring proper handling of expected indices and offsets.Fixes #1530