MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / formatString

Function formatString

src/lib/languageModeRecommendations.js:36–40  ·  view source on GitHub ↗
(value, replacements)

Source from the content-addressed store, hash-verified

34}
35
36function formatString(value, replacements) {
37 return String(value || "").replace(/\{(\w+)\}/g, (_, key) => {
38 return replacements[key] ?? "";
39 });
40}
41
42async function openUrl(url) {
43 if (window.cordova?.exec) {

Callers 1

showRecommendationMethod · 0.85

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected