i have some riddle here :slightly_smiling_face: &g...
# pact-js
d
i have some riddle here 🙂
Copy code
term({ generate: "21+3", matcher: "21\+3" })
makes
Example ‘21+3’ does not match provided regular expression ‘21+3’
🧙‍♂️ 1
and the answer is - moar \ 😄
😅 1
☝️ 2
Copy code
term({ generate: "21+3", matcher: "21\\+3" })
chefkiss 1
y
ruby regex, it gets everyone! I use rubular.com
Thanks for sharing the answer for others 🙏
👍 1
d
sadly i poked some online regex websites, none give me the answer
not so obvious 😞 but gave idea, what/where could went wrong
y
Appreciate that and thanks for being so honest with the feedback. The matchers examples across all of the languages is firmly in my sights. https://docs.pact.io/getting_started/matching https://github.com/pact-foundation/docs.pact.io/issues/88 i'll add a note of this thread to the issue
👍 1