Skip to content

Commit b0ac041

Browse files
committed
don't compare scheme case insensitive (yet?) microsoft#93368
1 parent 9711579 commit b0ac041

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/vs/base/common/map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export class UriIterator implements IKeyIterator<URI> {
206206

207207
cmp(a: string): number {
208208
if (this._states[this._stateIdx] === UriIteratorState.Scheme) {
209-
return compareSubstringIgnoreCase(a, this._value.scheme);
209+
return compare(a, this._value.scheme);
210210
} else if (this._states[this._stateIdx] === UriIteratorState.Authority) {
211211
return compareSubstringIgnoreCase(a, this._value.authority);
212212
} else if (this._states[this._stateIdx] === UriIteratorState.Path) {

src/vs/base/test/common/map.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,8 @@ suite('Map', () => {
371371
iter.reset(URI.parse('file:///usr/bin/file.txt'));
372372

373373
assert.equal(iter.value(), 'file');
374-
assert.equal(iter.cmp('FILE'), 0);
374+
// assert.equal(iter.cmp('FILE'), 0);
375+
assert.equal(iter.cmp('file'), 0);
375376
assert.equal(iter.hasNext(), true);
376377
iter.next();
377378

@@ -391,7 +392,8 @@ suite('Map', () => {
391392

392393
// scheme
393394
assert.equal(iter.value(), 'file');
394-
assert.equal(iter.cmp('FILE'), 0);
395+
// assert.equal(iter.cmp('FILE'), 0);
396+
assert.equal(iter.cmp('file'), 0);
395397
assert.equal(iter.hasNext(), true);
396398
iter.next();
397399

0 commit comments

Comments
 (0)