# frozen_string_literal: true # This class extracts all users found in a piece of text by the username or the # email address module Gitlab class UserExtractor # Not using `Devise.email_regexp` to filter out any chars that an email # does not end with and not pinning the email to a start of end of a string. EMAIL_REGEXP = /(?([^@\s]+@[^@\s]+(?