MCPcopy Index your code
hub / github.com/apache/pouchdb / parseDesignDocFunctionName

Function parseDesignDocFunctionName

lib/index.es.js:669–681  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

667}
668
669function parseDesignDocFunctionName(s) {
670 if (!s) {
671 return null;
672 }
673 var parts = s.split('/');
674 if (parts.length === 2) {
675 return parts;
676 }
677 if (parts.length === 1) {
678 return [s, s];
679 }
680 return null;
681}
682
683function normalizeDesignDocFunctionName(s) {
684 var normalized = parseDesignDocFunctionName(s);

Callers 2

filterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…