Skip to content
Snippets Groups Projects
Verified Commit 89b4900c authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3511574 by tom konda, smustgrave: Replace RegExp.test() for simple...

Issue #3511574 by tom konda, smustgrave: Replace RegExp.test() for simple string comparison with String.prototype method possibly
parent 293fe02e
No related branches found
No related tags found
1 merge request!5423Draft: Resolve #3329907 "Test2"
Pipeline #499073 passed with warnings
Pipeline: drupal

#499087

    Pipeline: drupal

    #499080

      Pipeline: drupal

      #499075

        ......@@ -14,7 +14,7 @@
        // loaded within an existing "workflow".
        if (
        !pathInfo.currentPathIsAdmin &&
        !/destination=/.test(windowLocation.search)
        !windowLocation.search.includes('destination=')
        ) {
        sessionStorage.setItem('escapeAdminPath', windowLocation);
        }
        ......
        ......@@ -83,7 +83,7 @@
        if (queryString !== '') {
        // If there is a '?' in ajaxPath, clean URL are on and & should be
        // used to add parameters.
        queryString = (/\?/.test(ajaxPath) ? '&' : '?') + queryString;
        queryString = (ajaxPath.includes('?') ? '&' : '?') + queryString;
        }
        }
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment