- Index
- »
- axon
- »
- func:parseRef
def
func:parseRef
parseRef(val, dis: null, checked: true)
Parse a Str into a Ref. If the string is not a valid Ref identifier then raise ParseErr or return null based on checked flag. If the string has a leading "@", then it is stripped off before parsing.
Examples:
parseRef("abc-123") parseRef("@abc-123")