Pasupathi Rajamanickam
Pasupathi Rajamanickam

Reputation: 2052

How to use regex for number marchers in pact contract interactions

I have a situation like example you can take this api

https://api.stackexchange.com/2.2/questions/45204710?order=desc&sort=activity&site=stackoverflow

This will return view_count as number. And that can be dynamic in nature. When I create pact interaction for these kinda response how can I add marchers for number. I tried this but not working.

"view_count": term({ matcher: '[0-9]', generate: 123 }),

Upvotes: 2

Views: 149

Answers (1)

Beth Skurrie
Beth Skurrie

Reputation: 1318

This is not currently supported. You should use a like(123) instead.

Upvotes: 2

Related Questions