require_valid_scope_name
Verifies that the scope name is valid, i.e. that it matches this regex: /^\w+(\.\w+)*$/ any single word (matched by \w+) or sequence of such words separated by dots is valid. name may not start or end with a dot.
Throws "INVALID SCOPE" if the name does not match
Parameters
name
the name to check