Skip to content

Needs to check the length of name for a method "logEvent(name, params)". #4496

Closed
@railsjack

Description

@railsjack

if (!isAlphaNumericUnderscore(name)) {
throw new Error(
`firebase.analytics().logEvent(*) 'name' invalid event name '${name}'. Names should contain 1 to 32 alphanumeric characters or underscores.`,
);
}

Here, there is a message string to restrict length of name, but in fact, it does not check the length of the name.
'... Names should contain 1 to 32 alphanumeric characters or underscores.'

Moreover, the limit of the name is 40, which is not 32.
Reference: https://firebase.google.com/docs/reference/cpp/group/event-names#summary

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions