src/rsql-parser.js
/**
 *  check and see if a section is parenthesized.
 */
check and see if a section is parenthesized.
check and see if a section is parenthesized .
function isParenthesized(section) {
  section = section.trim();
  if (section.charAt(0) === '(' && section.charAt(section.length-1) === ')') {
    var checkSections = [];
    peerParenthesizedSections(section, checkSections);
    if (checkSections.length === 1) {
      return checkSections[0];
    }
  }
  return false;
}
function isParenthesized ( section ) { section = section . trim ( ) ; if ( section . charAt ( 0 ) === '(' && section . charAt ( section . length - 1 ) === ')' ) { var checkSections = [ ] ; peerParenthesizedSections ( section , checkSections ) ; if ( checkSections . length === 1 ) { return checkSections [ 0 ] ; } } return false ; }
check and see if a section is parenthesized.
check and see if a section is parenthesized .
// this section is parenthesized, return the section with parentheses removed // the section is not parenthesized