MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / splitPrefix

Function splitPrefix

public/javascripts/require.js:389–397  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

387 //with the plugin being undefined if the name
388 //did not have a plugin prefix.
389 function splitPrefix(name) {
390 var prefix,
391 index = name ? name.indexOf('!') : -1;
392 if (index > -1) {
393 prefix = name.substring(0, index);
394 name = name.substring(index + 1, name.length);
395 }
396 return [prefix, name];
397 }
398
399 /**
400 * Creates a module mapping that includes plugin prefix, module

Callers 1

makeModuleMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected