Sign in
apache
/
nifi-fds
/
6435e394f6c7c31d3f61a4bfc9702bde2a1659fa
/
.
/
node_modules
/
remark-parse
/
lib
/
locate
/
break.js
blob: f5479e7c6e74efeb8f9c2e1ade57da9769f0c7f4 [
file
] [
log
] [
blame
]
'use strict'
module
.
exports
=
locate
function
locate
(
value
,
fromIndex
)
{
var
index
=
value
.
indexOf
(
'\n'
,
fromIndex
)
while
(
index
>
fromIndex
)
{
if
(
value
.
charAt
(
index
-
1
)
!==
' '
)
{
break
}
index
--
}
return
index
}