// Replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')
'use strict';

global.__jymfony = global.__jymfony || {};

/**
 * @param {string} str
 * @param {string} charList
 *
 * @returns {string}
 */
__jymfony.rtrim = function rtrim(str, charList) {
    if (undefined === charList) {
        charList = ' \\x09\\x0A\\x0D\\x00\\x0B';
    } else {
        charList = __jymfony.regex_quote(charList);
    }

    const re = new RegExp(`[${charList}]+$`, 'g');
    return str.replace(re, '');
};

/**
 * @param {string} str
 * @param {string} charList
 *
 * @returns {string}
 */
__jymfony.ltrim = function ltrim(str, charList) {
    if (undefined === charList) {
        charList = ' \\x09\\x0A\\x0D\\x00\\x0B';
    } else {
        charList = __jymfony.regex_quote(charList);
    }

    const re = new RegExp(`^[${charList}]+`, 'g');
    return str.replace(re, '');
};

/**
 * @param {string} str
 * @param {string} charList
 *
 * @returns {string}
 */
__jymfony.trim = function trim(str, charList) {
    return __jymfony.rtrim(__jymfony.ltrim(str, charList), charList);
};

@@ -218,36 +218,48 @@
 im(str, charList
+ = undefined
 ) %7B%0A
-
     if (undefine
@@ -605,32 +605,44 @@
 im(str, charList
+ = undefined
 ) %7B%0A    if (unde
@@ -946,32 +946,32 @@
 ns %7Bstring%7D%0A */%0A
-
 __jymfony.trim =
@@ -990,32 +990,44 @@
 im(str, charList
+ = undefined
 ) %7B%0A    return _

add ImportConfigurator