cloudformation-cli icon indicating copy to clipboard operation
cloudformation-cli copied to clipboard

Incorrect test inputs produced for RegEx word character

Open andrewbanchich opened this issue 3 years ago • 0 comments

Specifying a pattern using a word character (e.g. ^[\w\-.~]+$) causes invalid generated test inputs such as ŏŏşNÇţā3MKÁŔßïõŜàĆXń²ńÖÞ.

Replacing the above RegEx with ^[A-Za-z0-9_\-.~]+$ fixes this issue, so I assume that CFN CLI has a bug specifically related to \w.

andrewbanchich avatar May 17 '22 15:05 andrewbanchich