Replace RegExp.test() for simple string comparison with String.prototype method possibly

Created on 7 March 2025, about 1 month ago

Problem/Motivation

Some of RegExp.test() can replace with method which is defined String.prototype. In core/modules/toolbar/js/escapeAdmin.js, checks that window.location.search includes 'destination='.
This case can change to window.location.search.includes('destination=').

Proposed resolution

Replace possibly RegExp for simple string comparison with
method which is defined String.prototype.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

javascript

Created by

πŸ‡―πŸ‡΅Japan tom konda Kanagawa, Japan

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