MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / formatMessage

Function formatMessage

ServerEditorWeb/ace/worker-html.js:6420–6424  ·  view source on GitHub ↗
(format, args)

Source from the content-addressed store, hash-verified

6418};
6419
6420function formatMessage(format, args) {
6421 return format.replace(new RegExp('{[0-9a-z-]+}', 'gi'), function(match) {
6422 return args[match.slice(1, -1)] || match;
6423 });
6424}
6425
6426exports.TreeBuilder = TreeBuilder;
6427

Callers 1

worker-html.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected