Skip to content

Normalization scrubs email address #1123

@brian-kephart

Description

@brian-kephart

normalizes(*args, with: lambda { |field|
ActionController::Base.helpers.sanitize(
field.gsub(CamaleonRecord::TRANSLATION_TAG_HIDE_REGEX, CamaleonRecord::TRANSLATION_TAG_HIDE_MAP)
).gsub(CamaleonRecord::TRANSLATION_TAG_RESTORE_REGEX, CamaleonRecord::TRANSLATION_TAG_RESTORE_MAP)
})
end

Expected behavior:

Current behavior:

  • Email address and brackets are scrubbed out, resulting in "My Name "

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions