SortPluginBase.php / validateExposeForm: spelling mistake in character class

Created on 24 July 2023, 11 months ago
Updated 29 July 2023, 11 months ago

Problem/Motivation

The character class "[a-zA-z]" have a spelling mistake.
[A-z] = A-Z, [, \, ], ^, _, ', a-z (ASCII 65-122).

Steps to reproduce

File: core/modules/views/src/Plugin/views/sort/SortPluginBase.php

line: 233
if (!preg_match('/^[a-zA-z][a-zA-Z0-9_~.\-]*$/', $field_identifier)) {

Proposed resolution

If it is a spelling mistake:

line: 233
if (!preg_match('/^[a-zA-Z][a-zA-Z0-9_~.\-]*$/', $field_identifier)) {

Remaining tasks

no

User interface changes

no

API changes

no

Data model changes

no

Release notes snippet

🐛 Bug report
Status

Fixed

Version

11.0 🔥

Component
Views 

Last updated 1 minute ago

Created by

🇩🇪Germany fnalb2

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

Comments & Activities

Production build 0.69.0 2024