Skip to content

Commit 57763b8

Browse files
committed
Remove stringLike fix as it is merged from the other PR
1 parent 2623b65 commit 57763b8

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

packages/@aws-cdk/assert-internal/lib/assertions/have-resource-matchers.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,6 @@ function isCallable(x: any): x is ((...args: any[]) => any) {
243243
*/
244244
export function stringLike(pattern: string): PropertyMatcher {
245245
// Replace * with .* in the string, escape the rest and brace with ^...$
246-
247-
// needs rebase from https://github.com/aws/aws-cdk/pull/17692/files
248246
const regex = new RegExp(`^${pattern.split('*').map(escapeRegex).join('.*')}$`, 'm');
249247

250248
return annotateMatcher({ $stringContaining: pattern }, (value: any, failure: InspectionFailure) => {

0 commit comments

Comments
 (0)