Codearte / accurest

Accurest - Consumer Driven Contracts verifier for Java. Moved to:
https://github.com/spring-cloud/spring-cloud-contract
Apache License 2.0
99 stars 23 forks source link

incorrect regural expression interpretation (1.1.0-M5) #273

Closed norbson closed 8 years ago

norbson commented 8 years ago

contract body: body( code: 9, message: $(client('Wrong credentials'), server(regex('^(?!\\s*$).+'))) ) generates assertThatJson(parsedJson).field("message").matches("^(?!\\s*\$).+") which gives error: illegal escape character assertThatJson(parsedJson).field("message").matches("^(?!\\s*\$).+");

marcingrzejszczak commented 8 years ago

The dollar is escaped? :/

norbson commented 8 years ago

si :)