Sign in
apache
/
pouchdb
/
refs/heads/http-dead-code
/
.
/
lib
/
deps
/
docs
/
parseDdocFunctionName.js
blob: 2b4f8504f9e788d4d7049510b45678ce8384b4ba [
file
] [
log
] [
blame
]
'use strict'
;
module
.
exports
=
function
parseDesignDocFunctionName
(
s
)
{
if
(!
s
)
{
return
null
;
}
var
parts
=
s
.
split
(
'/'
);
if
(
parts
.
length
===
2
)
{
return
parts
;
}
if
(
parts
.
length
===
1
)
{
return
[
s
,
s
];
}
return
null
;
};