kab/kab/static/js/monaco-yaml/yamlWorker.js
/**
   * Parse a boolean according to the specification
   * Return: true if its a true value, false if its a false value
   */
Parse a boolean according to the specification
Return: true if its a true value, false if its a false value
Parse a boolean according to the specification Return : true if its a true value false if its a false value
function parseYamlBoolean(input) {
    if (['true', 'True', 'TRUE', 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',].lastIndexOf(input) >= 0) {
      return true;
    }
    if (['false', 'False', 'FALSE', 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF',].lastIndexOf(input) >= 0) {
      return false;
    }
    throw "Invalid boolean \"" + input + "\"";
  }
function parseYamlBoolean ( input ) { if ( [ 'true' , 'True' , 'TRUE' , 'y' , 'Y' , 'yes' , 'Yes' , 'YES' , 'on' , 'On' , 'ON' , ] . lastIndexOf ( input ) >= 0 ) { return true ; } if ( [ 'false' , 'False' , 'FALSE' , 'n' , 'N' , 'no' , 'No' , 'NO' , 'off' , 'Off' , 'OFF' , ] . lastIndexOf ( input ) >= 0 ) { return false ; } throw "Invalid boolean \"" + input + "\"" ; }
Parse a boolean according to the specification
 Return: true if its a true value, false if its a false value
Parse a boolean according to the specification Return : true if its a true value false if its a false value