Skip to content
Snippets Groups Projects

Issue #3511574: Replace RegExp.test() for simple string comparison with String.prototype method possibly

Closed Issue #3511574: Replace RegExp.test() for simple string comparison with String.prototype method possibly
Closed tom konda requested to merge issue/drupal-3511574:3511574-replace-regexp.test-for into 11.x
2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -14,7 +14,7 @@
// loaded within an existing "workflow".
if (
!pathInfo.currentPathIsAdmin &&
!/destination=/.test(windowLocation.search)
!windowLocation.search.includes('destination=')
) {
sessionStorage.setItem('escapeAdminPath', windowLocation);
}
Loading