1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-15 07:43:45 +00:00

Feature/split manage collections permission (#504)

* Split manage collections permissions

* Convert camel to pascal case for element id -> name
This commit is contained in:
Matt Gibson
2021-10-01 07:50:30 -05:00
committed by GitHub
parent ce71c0c0bd
commit 562e1fe459
4 changed files with 75 additions and 16 deletions

View File

@@ -325,6 +325,10 @@ export class Utils {
return url;
}
static camelToPascalCase(s: string) {
return s.charAt(0).toUpperCase() + s.slice(1);
}
private static validIpAddress(ipString: string): boolean {
// tslint:disable-next-line
const ipRegex = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;