Skip to content

String.prototype.includes() is not supported in IE #1272

@lifenstein

Description

@lifenstein

Is IE a supported browser? If so, https://github.com/validatorjs/validator.js/blob/master/validator.js#L429 has a call to String.prototype.includes(), which fails in IE as it is not available on that browser.

A polyfill is available at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions