MCPcopy Create free account
hub / github.com/DanWahlin/CustomerManagerStandard / __formatString

Function __formatString

CustomerManager/Scripts/breeze.debug.js:628–634  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

626 // Based on fragment from Dean Edwards' Base 2 library
627 // format("a %1 and a %2", "cat", "dog") -> "a cat and a dog"
628 function __formatString(string) {
629 var args = arguments;
630 var pattern = RegExp("%([1-" + (arguments.length - 1) + "])", "g");
631 return string.replace(pattern, function (match, index) {
632 return args[index];
633 });
634 }
635
636 // end of string functions
637

Callers 6

breeze.debug.jsFile · 0.85
throwConfigErrorFunction · 0.85
intRangeValidatorCtorFunction · 0.85
setDpValueComplexFunction · 0.85
throwErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected