private static int indexOfEither(String s, char c1, char c2) {
        int index = s.indexOf(c1);
        if (index != -1) {
            return index;
        }
        return s.indexOf(c2);
    }
Parses and expands the shorthand format.

@param s the string to expand
@return the expanded result
common/src/main/java/me/lucko/luckperms/common/node/utils/ShorthandParser.java