stpl / redmine_mention_plugin

Add user to the watchers list of an issue/wiki after mentioning him/her in the note.
8 stars 9 forks source link

TAG_SCAN_REGEX does not cover all allowed usernames in redmine #6

Open ghost opened 10 years ago

ghost commented 10 years ago

The current TAG_SCAN_REGEX does not cover all username cases

Here is the current validation from redmine-2.5.2/app/models/users.rb

validates_format_of :login, :with => /\A[a-z0-9_\-@\.]*\z/i

So a username like foo.foo would not be parsed