mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 19:48:09 +00:00
uri - export as URI and as default
This commit is contained in:
parent
c3ff42d57a
commit
ae90f6dea1
2 changed files with 4 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
'use strict';
|
||||
|
||||
import * as paths from 'vs/base/common/paths';
|
||||
import URI from 'vs/base/common/uri';
|
||||
import { URI } from 'vs/base/common/uri';
|
||||
import { equalsIgnoreCase } from 'vs/base/common/strings';
|
||||
import { Schemas } from 'vs/base/common/network';
|
||||
import { isLinux, isWindows } from 'vs/base/common/platform';
|
||||
|
|
|
@ -82,7 +82,7 @@ const _regexp = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
|
|||
* / \ / \
|
||||
* urn:example:animal:ferret:nose
|
||||
*/
|
||||
export default class URI implements UriComponents {
|
||||
export class URI implements UriComponents {
|
||||
|
||||
static isUri(thing: any): thing is URI {
|
||||
if (thing instanceof URI) {
|
||||
|
@ -355,6 +355,8 @@ export default class URI implements UriComponents {
|
|||
}
|
||||
}
|
||||
|
||||
export default URI;
|
||||
|
||||
export interface UriComponents {
|
||||
scheme: string;
|
||||
authority: string;
|
||||
|
|
Loading…
Reference in a new issue