We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b746b7 commit a666cd0Copy full SHA for a666cd0
server/src/extensions/stringExtensions.ts
@@ -6,6 +6,7 @@ declare global {
6
stripQuotes(): string;
7
toFilePath(): string;
8
toFileUri(): string;
9
+ ciEquals(s: string): boolean;
10
}
11
12
@@ -25,3 +26,9 @@ String.prototype.toFileUri = function (): string {
25
26
? pathToFileURL(this.toString()).href
27
: this.toString();
28
};
29
+
30
+String.prototype.ciEquals = function (s: string): boolean {
31
+ return this.localeCompare(s, undefined, {
32
+ sensitivity: 'accent'
33
+ }) === 0;
34
+};
0 commit comments