transformSelector(transformations, sel, bemBase) {
        sel = super.transformSelector(transformations, sel, bemBase);

        for (const k in transformations) {
          if (_.has(transformations, k) && (k === 'text')) {
            const v = transformations[k];
            const [val, opts] = _.isArray(v) ? v : [v];
            sel = selector.filterByText(sel, val, opts);
          }
        }

        return sel;
      }
/**
       * Allows to select fragment F2 by its text and it can be a string,
       * a RegExp or a tupple where first element is a string/RegExp and second
       * is an options (see implementation for details).
       */
Allows to select fragment F2 by its text and it can be a string,
a RegExp or a tupple where first element is a string/RegExp and second
is an options .
Allows to select fragment F2 by its text and it can be a string a RegExp or a tupple where first element is a string / RegExp and second is an options .
transformSelector(transformations, sel, bemBase) {
        sel = super.transformSelector(transformations, sel, bemBase);
        for (const k in transformations) {
          if (_.has(transformations, k) && (k === 'text')) {
            const v = transformations[k];
            const [val, opts] = _.isArray(v) ? v : [v];
            sel = selector.filterByText(sel, val, opts);
          }
        }
        return sel;
      }
transformSelector ( transformations , sel , bemBase ) { sel = super . transformSelector ( transformations , sel , bemBase ) ; for ( const k in transformations ) { if ( _ . has ( transformations , k ) && ( k === 'text' ) ) { const v = transformations [ k ] ; const [ val , opts ] = _ . isArray ( v ) ? v : [ v ] ; sel = selector . filterByText ( sel , val , opts ) ; } } return sel ; }
Allows to select fragment F2 by its text and it can be a string,
 a RegExp or a tupple where first element is a string/RegExp and second
 is an options (see implementation for details).
Allows to select fragment F2 by its text and it can be a string a RegExp or a tupple where first element is a string / RegExp and second is an options ( see implementation for details ) .