MCPcopy Create free account
hub / github.com/Cellule/dndGenerator / getCharacterText

Method getCharacterText

src/UserInput.tsx:129–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 };
128
129 private getCharacterText() {
130 const elementData = document.getElementById("downloadData");
131
132 if (!elementData) {
133 alert("Unable to find character data");
134 throw new Error("Missing element downloadData");
135 }
136
137 const body = (elementData.textContent || "").split("#").join("\r\n").split("#").join("\r\n");
138 return body;
139 }
140
141 private getExportFileName() {
142 const name = this.props.npc.description.name.split(" ")[0];

Callers 1

UserInputClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected