CodeQL library for JavaScript
codeql/javascript-all 0.2.3 (changelog, source)
Search

Member predicate PathString::getExtension

Gets the extension of the folder or file this path refers to, that is, the suffix of the base name starting at the last dot character, if there is one.

Has no result if the base name does not contain a dot.

string getExtension()