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

Function validateListName

Script/FastDork.js:1201–1214  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1199 }
1200 }
1201 function validateListName(name) {
1202 const listName = name?.trim();
1203 if (!listName || !/^[a-zA-Z0-9-]{1,15}$/.test(listName)) return false;
1204 const reservedPrefixes = [
1205 "List-D-",
1206 "List-R-",
1207 "tab2Save-",
1208 "saveOption",
1209 "userSite",
1210 "defaultSite",
1211 "DATA_RESULT",
1212 ];
1213 return !reservedPrefixes.some((prefix) => listName.startsWith(prefix));
1214 }
1215 async function deleteDorkList() {
1216 if (!UI.listDelDropdown) {
1217 console.error("Delete list dropdown UI element not found.");

Callers 1

createDorkListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected