import { Tags } from "polar-shared/src/tags/Tags" ; export class GroupNames { public static assertValid ( name ) { function assertDoesNotContain ( ch ) { if ( name . indexOf ( ch ) !== - 1 ) { throw new Error ( "name must not contain: " + ch ) ; } } assertDoesNotContain ( ':' ) ; assertDoesNotContain ( '#' ) ; assertDoesNotContain ( '/' ) ; Tags . assertValid ( name ) ; } }