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

Member predicate FilePath::isDotRelativePath

Holds if this is a relative path starting with an explicit ./ or similar syntax meaning it must be resolved relative to its enclosing folder.

Specifically this holds when the string is . or .., or starts with ./ or ../ or .\ or ..\.

predicate isDotRelativePath()