- Issue created by @alexl
- last update
about 1 year ago Fetch Error - last update
about 1 year ago 536 pass - πΊπΈUnited States jrockowitz Brooklyn, NY
I think only the regex needs to be improved by adding the $ and maybe allow for extra spaces.
Before
if (!empty($query['entity']) && preg_match('#\(([^)]+)\)#', $query['entity'], $match)) {
After
if (!empty($query['entity']) && preg_match('#\(([^)]+)\)\s*$#', $query['entity'], $match)) {
- Open on Drupal.org βCore: 10.1.4 + Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Waiting for branch to pass - π«π·France alexl
hi @jrockowitz
the string is give by my client and can have an open and not closed parenthesis. ex : "test (7/ "
I think my last regex covers all cases.
- Status changed to Fixed
about 1 year ago 7:17pm 4 April 2024 - 0beb3959 committed on 6.2.x
Issue #3423007 by alexl: Regex Submit Form for Enter Submitted to
- 0beb3959 committed on 6.2.x
Automatically closed - issue fixed for 2 weeks with no activity.