Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ng-pattern allows literal RegExp syntax; expression documentation says this is disallowed #15929

Closed
@nmschulte

Description

@nmschulte

I'm submitting a ...

  • bug report
  • feature request
  • other (Please do not submit support requests here (see above))

Current behavior:
The ng-pattern directive works when supplying a literal RegExp:
<input ... ng-pattern="/^\d+$/" ... />

The Angular expression documentation notes this is not allowed.

Expected / new behavior:
Some sort of consistency; preferably the ability to create RegExps from Angular expressions.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions