string or range to be sliced
slice of path with the extension (if any) stripped off
assert(stripExtension("file") == "file"); assert(stripExtension("file.ext") == "file"); assert(stripExtension("file.ext1.ext2") == "file.ext1"); assert(stripExtension("file.") == "file"); assert(stripExtension(".file") == ".file"); assert(stripExtension(".file.ext") == ".file"); assert(stripExtension("dir/file.ext") == "dir/file");
Remove extension from path.