Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
export function poolTouchKeys(scope: unknown): string[] {
|
||||
const key = String(scope ?? '').trim()
|
||||
|
||||
if (!key) {
|
||||
return []
|
||||
}
|
||||
|
||||
const localPrefix = 'conn:local::'
|
||||
|
||||
if (key.startsWith(localPrefix)) {
|
||||
const delegatedProfile = key.slice(localPrefix.length)
|
||||
|
||||
if (delegatedProfile) {
|
||||
return [key, delegatedProfile]
|
||||
}
|
||||
}
|
||||
|
||||
return [key]
|
||||
}
|
||||
Reference in New Issue
Block a user