stylelint-bundle-worker.js
function escapeBraces(str, arr, opts) {
  if (!/\{[^{]+\{/.test(str)) {
    return arr.concat(str.split('\\').join(''));
  } else {
    str = str.split('\\{').join('__LT_BRACE__');
    str = str.split('\\}').join('__RT_BRACE__');
    return map(braces(str, arr, opts), function(ele) {
      ele = ele.split('__LT_BRACE__').join('{');
      return ele.split('__RT_BRACE__').join('}');
    });
  }
}
function escapeBraces(str, arr, opts) {
  if (!/\{[^{]+\{/.test(str)) {
    return arr.concat(str.split('\\').join(''));
  } else {
    str = str.split('\\{').join('__LT_BRACE__');
    str = str.split('\\}').join('__RT_BRACE__');
    return map(braces(str, arr, opts), function(ele) {
      ele = ele.split('__LT_BRACE__').join('{');
      return ele.split('__RT_BRACE__').join('}');
    });
  }
}
function escapeBraces ( str , arr , opts ) { if ( ! / \{[^{]+\{ / . test ( str ) ) { return arr . concat ( str . split ( '\\' ) . join ( '' ) ) ; } else { str = str . split ( '\\{' ) . join ( '__LT_BRACE__' ) ; str = str . split ( '\\}' ) . join ( '__RT_BRACE__' ) ; return map ( braces ( str , arr , opts ) , function ( ele ) { ele = ele . split ( '__LT_BRACE__' ) . join ( '{' ) ; return ele . split ( '__RT_BRACE__' ) . join ( '}' ) ; } ) ; } }
Handle escaped braces: `\\{foo,bar}`
Handle escaped braces : \\ { foo bar }