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

Function parseDesignDocFunctionName

lib/index.js:674–686  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

672}
673
674function parseDesignDocFunctionName(s) {
675 if (!s) {
676 return null;
677 }
678 var parts = s.split('/');
679 if (parts.length === 2) {
680 return parts;
681 }
682 if (parts.length === 1) {
683 return [s, s];
684 }
685 return null;
686}
687
688function normalizeDesignDocFunctionName(s) {
689 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…