kab/kab/static/js/monaco-yaml/yamlWorker.js
/**
   * Compute `fsPath` for the given uri
   */
Compute `fsPath` for the given uri
Compute ` fsPath ` for the given uri
function _makeFsPath(uri) {
    var value;
    if (uri.authority && uri.path.length > 1 && uri.scheme === 'file') {
      value = "//" + uri.authority + uri.path;
    }
    else if (uri.path.charCodeAt(0) === 47 
      && (uri.path.charCodeAt(1) >= 65  && uri.path.charCodeAt(1) <= 90  || uri.path.charCodeAt(1) >= 97  && uri.path.charCodeAt(1) <= 122 )
      && uri.path.charCodeAt(2) === 58 ) {
      value = uri.path[1].toLowerCase() + uri.path.substr(2);
    }
    else {
      value = uri.path;
    }
    if (isWindows) {
      value = value.replace(/\//g, '\\');
    }
    return value;
  }
function _makeFsPath ( uri ) { var value ; if ( uri . authority && uri . path . length > 1 && uri . scheme === 'file' ) { value = "//" + uri . authority + uri . path ; } else if ( uri . path . charCodeAt ( 0 ) === 47 && ( uri . path . charCodeAt ( 1 ) >= 65 && uri . path . charCodeAt ( 1 ) <= 90 || uri . path . charCodeAt ( 1 ) >= 97 && uri . path . charCodeAt ( 1 ) <= 122 ) && uri . path . charCodeAt ( 2 ) === 58 ) { value = uri . path [ 1 ] . toLowerCase ( ) + uri . path . substr ( 2 ) ; } else { value = uri . path ; } if ( isWindows ) { value = value . replace ( / \/ / g , '\\' ) ; } return value ; }
Compute `fsPath` for the given uri
Compute ` fsPath ` for the given uri
// unc path: file://shares/c$/far/boo /* Slash */ /* A */ /* Z */ /* a */ /* z */ /* Colon */ // windows drive letter: file:///c:/far/boo // other path