MatchingQuery for batch change does not work

Hello,
I’m doing a batch change to update all “id}” preceeds by one or many letters.

When Im doing a sourcegraph search:

context:global /([a-tv-z]+id})/

I got a match for 11 repos and it finds correct match like “userid}” or “parmentid}” for example.


Now I want to do a batch change to change all those id} occurence to Id}.
So I’m using the same search in my batch spec

on:
  - repositoriesMatchingQuery: context:global /([a-tv-z]+id})/

but now it matches wrongfully this :
_id , {id}
and thus it does the change in 25 repos.

Am I doing something wrong? Is it a know issue?

Thanks for the support

1 Like

Hey @adrientiburce

Good question. I forwarded your issue to an expert and will catch up on that.

Hey @adrientiburce

Thank you for reaching out! It might be an issue on our end. For enterprise customers, we have a dedicated support process through support@sourcegraph.com. The best way to assist you would be to submit your inquiry there, as this ensures proper tracking and allows us to provide you with the level of service outlined in your SLA. Our enterprise support team is ready to assist you! (I told them to expect you :wink: )