@twinfinity/entity-referenceFunctionsisValidSegmentisValidSegment CallableisValidSegment(value: string): booleanA path segment: non-empty, no / or @, not . or .., no leading or trailing space, and conforming to the character policy. Unlike an id a segment may contain :, ., ~, interior spaces and non-ASCII text -- layer names are real-world data.Parametersvalue: stringReturns boolean
A path segment: non-empty, no
/or@, not.or.., no leading or trailing space, and conforming to the character policy. Unlike an id a segment may contain:,.,~, interior spaces and non-ASCII text -- layer names are real-world data.