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

Merge branch '3428652-do-not-use-replace_pattern' into '11.x'

Resolve #3428652 "Do not use replace pattern"

See merge request !8677
parents b410d970 298de023
No related branches found
No related tags found
No related merge requests found
Pipeline #258969 failed
Pipeline: drupal

#258971

    ......@@ -304,7 +304,6 @@
    }
    slugify.config({
    separator: settings.replace,
    allowedChars: settings.replace_pattern,
    replace: normalizedLanguageOverrides,
    });
    ......
    ......@@ -26,7 +26,7 @@ const MachineNameTestArray = [
    replacePattern: 'a-zA-Z0-9_.~@',
    replaceChar: '_',
    maxlength: 64,
    expectedMachineName: 'bob@e_0',
    expectedMachineName: 'bob_e_0',
    },
    {
    machineName: 'Bobby',
    ......@@ -232,7 +232,7 @@ module.exports = {
    return Drupal.behaviors.machineName.transliterate(
    object.machineName,
    {
    replace_pattern: object.replacePattern,
    replace_pattern: `[^${object.replacePattern}]+`,
    replace: object.replaceChar,
    maxlength: object.maxlength,
    },
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment