mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 (#7880)
* Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 * fix pipelines * fix strict-null-checks * add missing files
This commit is contained in:
@@ -117,6 +117,8 @@ export class PathIterator implements IKeyIterator {
|
||||
private _from!: number;
|
||||
private _to!: number;
|
||||
|
||||
constructor(private _splitOnBackslash: boolean = true) { }
|
||||
|
||||
reset(key: string): this {
|
||||
this._value = key.replace(/\\$|\/$/, '');
|
||||
this._from = 0;
|
||||
@@ -134,7 +136,7 @@ export class PathIterator implements IKeyIterator {
|
||||
let justSeps = true;
|
||||
for (; this._to < this._value.length; this._to++) {
|
||||
const ch = this._value.charCodeAt(this._to);
|
||||
if (ch === CharCode.Slash || ch === CharCode.Backslash) {
|
||||
if (ch === CharCode.Slash || this._splitOnBackslash && ch === CharCode.Backslash) {
|
||||
if (justSeps) {
|
||||
this._from++;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user