Closed norbson closed 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*\$).+");
body( code: 9, message: $(client('Wrong credentials'), server(regex('^(?!\\s*$).+'))) )
assertThatJson(parsedJson).field("message").matches("^(?!\\s*\$).+")
error: illegal escape character assertThatJson(parsedJson).field("message").matches("^(?!\\s*\$).+");
The dollar is escaped? :/
si :)
contract body:
body( code: 9, message: $(client('Wrong credentials'), server(regex('^(?!\\s*$).+'))) )
generatesassertThatJson(parsedJson).field("message").matches("^(?!\\s*\$).+")
which giveserror: illegal escape character assertThatJson(parsedJson).field("message").matches("^(?!\\s*\$).+");