(assert-internal): stringLike function does not support multiline strings #17691
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
What is the problem?
I am writing an unit test using the stringLike() as suggested by @nija-at @ #16827
The value being checked contains line breaks (\n) which fails on current implementation of stringLike()
Reproduction Steps
Copied the code from the aws-cdk:
output is "false"
What did you expect to happen?
to return
true
What actually happened?
it returned false
CDK CLI Version
1.134.0
Framework Version
No response
Node.js Version
12
OS
mac
Language
Typescript
Language Version
No response
Other information
Issue can be fixed by:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/multiline
I am going to submit a PR soon.
The text was updated successfully, but these errors were encountered: