We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07ba537 commit b3fdb3aCopy full SHA for b3fdb3a
1 file changed
extensions/ql-vscode/src/config.ts
@@ -113,7 +113,7 @@ export function hasEnterpriseUri(): boolean {
113
*/
114
export function hasGhecDrUri(): boolean {
115
const uri = getEnterpriseUri();
116
- return uri !== undefined && uri.authority.match(/.*\.ghe\.com/) !== null;
+ return uri !== undefined && uri.authority.toLowerCase().endsWith(".ghe.com");
117
}
118
119
const ROOT_SETTING = new Setting("codeQL");
0 commit comments