EmbeddedContentButton regex produces a warning

Created on 4 December 2024, 15 days ago

Problem/Motivation

An invalid regex in the meetsCondition method of EmbeddedContentButton will produce a warning, this results in a lot of log noise even though it's in a try catch block

Warning: preg_match(): Delimiter must not be alphanumeric, backslash, or NUL in Drupal\embedded_content\Entity\EmbeddedContentButton->meetsCondition() 

Proposed resolution

Suppress error messages as well as ignoring exceptions.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇳🇿New Zealand somatick

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024