Sign in
apache
/
nifi-fds
/
gh-pages
/
.
/
node_modules
/
min-indent
/
index.js
blob: 77abf19276912fa586a9ac8823e260e3c715dc6d [
file
] [
log
] [
blame
]
'use strict'
;
module
.
exports
=
string
=>
{
const
match
=
string
.
match
(
/^[ \t]*(?=\S)/
gm
);
if
(!
match
)
{
return
0
;
}
return
match
.
reduce
((
r
,
a
)
=>
Math
.
min
(
r
,
a
.
length
),
Infinity
);
};