dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.19k stars 795 forks source link

fix: ensure resource policy matches the whole arn #1798

Closed G-Rath closed 3 months ago

G-Rath commented 3 months ago

Description

This changes the regexp used to test resource arns with wildcards so that they don't have an implicit wildcard at the end

Motivation and Context

Resolves #1191

How Has This Been Tested?

I have run the tests and used this locally

Screenshots (if appropriate):

DorianMazur commented 3 months ago

Thank you @G-Rath for PR