pub fn anchor_allowed_pattern(pattern: &str) -> StringExpand description
Anchor an AllowedPattern the way CloudFormation does before matching: a pattern is implicitly
wrapped so it must match the whole value. A leading ^ and/or trailing $ already present are
kept; missing anchors are added.