From 9596995ffc2972a8edf72e6532d04eb0d83b97c2 Mon Sep 17 00:00:00 2001 From: dronenb Date: Sat, 16 Nov 2024 10:31:45 -0700 Subject: [PATCH] homebrew_cask: add + to valid cask chars (#9128) * fix(homebrew_cask): add + to valid cask chars * docs(homebrew_cask): add changelog fragment Signed-off-by: Ben Dronen * fix(homebrew_cask): add PR link to changelog fragment Signed-off-by: Ben Dronen * fix: add period to end of changelog fragment Signed-off-by: Ben Dronen * fix: remove blank line from changelog fragment Signed-off-by: Ben Dronen * fix: changelog fragment formatting Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * Update changelogs/fragments/9128-homebrew_cask-name-regex-fix.yml Co-authored-by: Felix Fontein --------- Signed-off-by: Ben Dronen Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> Co-authored-by: Felix Fontein --- changelogs/fragments/9128-homebrew_cask-name-regex-fix.yml | 2 ++ plugins/modules/homebrew_cask.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 changelogs/fragments/9128-homebrew_cask-name-regex-fix.yml diff --git a/changelogs/fragments/9128-homebrew_cask-name-regex-fix.yml b/changelogs/fragments/9128-homebrew_cask-name-regex-fix.yml new file mode 100644 index 0000000000..69765958fb --- /dev/null +++ b/changelogs/fragments/9128-homebrew_cask-name-regex-fix.yml @@ -0,0 +1,2 @@ +bugfixes: + - homebrew_cask - allow ``+`` symbol in Homebrew cask name validation regex (https://github.com/ansible-collections/community.general/pull/9128). diff --git a/plugins/modules/homebrew_cask.py b/plugins/modules/homebrew_cask.py index 9902cb1373..83901b4dbe 100644 --- a/plugins/modules/homebrew_cask.py +++ b/plugins/modules/homebrew_cask.py @@ -190,6 +190,7 @@ class HomebrewCask(object): / # slash (for taps) \- # dashes @ # at symbol + \+ # plus symbol ''' INVALID_CASK_REGEX = _create_regex_group_complement(VALID_CASK_CHARS)