Problem/Motivation

After opening the field widget settings the browser reports:

Pattern attribute value ^(\d+(cm|mm|in|px|pt|pc|em|ex|ch|rem|vm|vh|vmin|vmax|\%)|element|style|resolve|auto|initial|inherit)$ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /^(\d+(cm|mm|in|px|pt|pc|em|ex|ch|rem|vm|vh|vmin|vmax|\%)|element|style|resolve|auto|initial|inherit)$/: Invalid escape

Proposed resolution

Fix the regex

Comments

chr.fritsch created an issue. See original summary.

chr.fritsch’s picture

Status: Active » Needs review

chr.fritsch’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @mtodor for reviewing

  • chr.fritsch authored 4695c61 on 8.x-1.x
    Issue #3008312 by chr.fritsch, mtodor: #pattern is broken for client...
chr.fritsch’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.