Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298272

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

$
0
0

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


Viewing all articles
Browse latest Browse all 298272

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>