Skip to content

Commit 7361a29

Browse files
authored
Merge pull request #351 from DannyBen/change/allow-dot-in-command-name
Allow dot in command.name
2 parents 0acebd2 + a4ea0fa commit 7361a29

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/bashly/config_validator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ def assert_command(key, value)
157157
assert_extensible "#{key}.extensible", value['extensible']
158158
assert_dependencies "#{key}.dependencies", value['dependencies']
159159

160-
assert value['name'].match(/^[a-z0-9_-]+$/),
161-
"#{key}.name must only contain lowercase alphanumeric characters, hyphens and underscores"
160+
assert value['name'].match(/^[a-z0-9_\-.]+$/),
161+
"#{key}.name must only contain lowercase alphanumeric characters, hyphens, dots and underscores"
162162

163163
refute value['name'].start_with?('-'), "#{key}.name must not start with a hyphen"
164164

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#<Bashly::ConfigurationError: root.name must only contain lowercase alphanumeric characters, hyphens and underscores>
1+
#<Bashly::ConfigurationError: root.name must only contain lowercase alphanumeric characters, hyphens, dots and underscores>

0 commit comments

Comments
 (0)