Rename v2 auth service to account (#28260)

This commit is contained in:
Dax 2026-05-20 20:53:27 -04:00 committed by GitHub
commit 8643c0721e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
67 changed files with 2544 additions and 1382 deletions

View file

@ -0,0 +1,14 @@
export * as Wildcard from "./wildcard"
export function match(input: string, pattern: string) {
const normalized = input.replaceAll("\\", "/")
let escaped = pattern
.replaceAll("\\", "/")
.replace(/[.+^${}()|[\]\\]/g, "\\$&")
.replace(/\*/g, ".*")
.replace(/\?/g, ".")
if (escaped.endsWith(" .*")) escaped = escaped.slice(0, -3) + "( .*)?"
return new RegExp("^" + escaped + "$", process.platform === "win32" ? "si" : "s").test(normalized)
}