MCPcopy Create free account
hub / github.com/SKVNDR/FastDork / truncateText

Function truncateText

Script/FastDork.js:1804–1809  ·  view source on GitHub ↗
(text, limit)

Source from the content-addressed store, hash-verified

1802 console.log("[populateSearchEngineDropdown] Finished populating engines.");
1803 }
1804 function truncateText(text, limit) {
1805 if (text && text.length > limit) {
1806 return text.substring(0, limit) + "...";
1807 }
1808 return text || "";
1809 }
1810 function resetSettingsTabView() {
1811 if (UI.listSettingsContainer)
1812 UI.listSettingsContainer.style.display = "none";

Callers 6

loadAndPopulateListsFunction · 0.85
loadAndPopulateEnginesFunction · 0.85
setupImportButtonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected