Skip to content

Commit

Permalink
escape this .
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Aug 26, 2024
1 parent 217dccc commit 1294820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ood_auth_map/lib/ood_auth_map/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class << self
# @param auth_user [String] authenticated username
# @return [String, nil] mapped user name or {nil} if no match
def parse_mapfile(file, auth_user)
parse_file(file, %r[^"#{Regexp.quote auth_user}" ([\w.-@]+)$])
parse_file(file, %r[^"#{Regexp.quote auth_user}" ([\w\.-@]+)$])
end

# Parse a file using a given regular expression pattern and output the
Expand Down

0 comments on commit 1294820

Please sign in to comment.