Sign in
apache
/
cordova-create
/
67de95665d8f0d96e13fdd98f9cd6a69c0d9e637
/
.
/
node_modules
/
rechoir
/
lib
/
extension.js
blob: 60f19da4e98be7b8922d8cd009041a999325322d [
file
] [
log
] [
blame
]
const
path
=
require
(
'path'
);
const
EXTRE
=
/^[.]?[^.]+([.].*)$/
;
module
.
exports
=
function
(
input
)
{
var
extension
=
EXTRE
.
exec
(
path
.
basename
(
input
));
if
(!
extension
)
{
return
;
}
return
extension
[
1
];
};