Prepends a dot to file extension if dot doesn't exist
raw extension
file extension with a dot
getCleanedExtension(''); // undefinedgetCleanedExtension('a'); // '.a'getCleanedExtension('.a'); // '.a'getCleanedExtension('a.b'); // '.a.b'getCleanedExtension('.a.b'); // '.a.b' Copy
getCleanedExtension(''); // undefinedgetCleanedExtension('a'); // '.a'getCleanedExtension('.a'); // '.a'getCleanedExtension('a.b'); // '.a.b'getCleanedExtension('.a.b'); // '.a.b'
Prepends a dot to file extension if dot doesn't exist