• Returns the extension name of the path of a URI, similar to the Unix extname command. In the path, '/' is recognized as the directory separation character. Trailing directory separators are ignored. The empty string is returned if the URIs path is empty or does not contain any path segments.

    Parameters

    • uri: URI

      The input URI.

    Returns string

    The extension name of the URIs path.