Skip to content

Commit 5299bc4

Browse files
committed
fix: allow uppercase characters in argument names
1 parent b3e1adf commit 5299bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rapid/definitions/argument.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def dsl
2828
def validate(errors)
2929
if @name.nil?
3030
errors.add self, 'MissingName', 'Arguments must have a name'
31-
elsif @name.to_s !~ /\A[a-z0-9\-_]+\z/
31+
elsif @name.to_s !~ /\A[a-z0-9\-_]+\z/i
3232
errors.add self, 'InvalidName', 'Argument name must only include letters, numbers, hyphens and underscores'
3333
end
3434

0 commit comments

Comments
 (0)