3 of 3 added 39 characters in body

# Python 2, 10897 89 bytes

i=input().split(".")
for x in range(len(i)+~(i[-1][0]<"[")):i[x]=i[x][0]
print".".join(i)


Try it online!

-8 with many thanks to @ovs for the tip