diff --git a/scripts/Utils.js b/scripts/Utils.js index 6d2465e..e85c129 100644 --- a/scripts/Utils.js +++ b/scripts/Utils.js @@ -20,4 +20,6 @@ const loading = (context) => { } } -export {loading} \ No newline at end of file +const capitalize = (text) => text.charAt(0).toUpperCase() + text.slice(1); + +export {loading, capitalize} \ No newline at end of file diff --git a/scripts/lib/CityImporter.js b/scripts/lib/CityImporter.js index c3b1664..1f01181 100644 --- a/scripts/lib/CityImporter.js +++ b/scripts/lib/CityImporter.js @@ -1,4 +1,4 @@ -import {loading} from "../Utils.js"; +import {loading, capitalize} from "../Utils.js"; const decodeHTML = (rawText) => { const txt = document.createElement("textarea"); @@ -47,8 +47,6 @@ const createActor = async (entityName, rawText, folder) => await Actor.create({ folder: folder }) -const capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1); - const createAndUpdateActor = (uidToActorIdMap, createdActorsArray) => async (actorData, NPCFolder) => { const newActor = await createActor(actorData.name, `