Skip to content

Commit b3fdb3a

Browse files
Use endsWith instead of regex
1 parent 07ba537 commit b3fdb3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/ql-vscode/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export function hasEnterpriseUri(): boolean {
113113
*/
114114
export function hasGhecDrUri(): boolean {
115115
const uri = getEnterpriseUri();
116-
return uri !== undefined && uri.authority.match(/.*\.ghe\.com/) !== null;
116+
return uri !== undefined && uri.authority.toLowerCase().endsWith(".ghe.com");
117117
}
118118

119119
const ROOT_SETTING = new Setting("codeQL");

0 commit comments

Comments
 (0)