MCPcopy
hub / github.com/vercel/hyper / parseHash

Function parseHash

bin/yarn-standalone.js:35667–35670  ·  view source on GitHub ↗
(fragment)

Source from the content-addressed store, hash-verified

35665function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
35666
35667function parseHash(fragment) {
35668 const hashPosition = fragment.indexOf('#');
35669 return hashPosition === -1 ? '' : fragment.substr(hashPosition + 1);
35670}
35671
35672function explodeHostedGitFragment(fragment, reporter) {
35673 const hash = parseHash(fragment);

Callers 1

explodeHostedGitFragmentFunction · 0.85

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected