Closed sudoremo closed 2 years ago
Hi @remofritzsche. Your proposed regexp is definitely the better choice, do you want to adapt the PR for that?
Sure, the PR should be updated now. Thanks 👌
Released as 2.1.1. Thanks!
Many thanks @kratob und Grüsse aus der Schweiz!
This fixes the following ruby warning:
This fix adapts the regex in a way that does not alter its matching pattern. However, while the pattern
[A-z]
includes all the characters from the alphabet, lower and upper case, it also includes the characters[
,\
,]
, and^
(among_
, which is the point of this issue). If this is not desired, the pattern should be changed to/\A[A-Za-z0-9_]*\z/
instead, as it would be more specific and does not allow any additional characters.Thanks for considering this PR 👍