Update core.luau

This commit is contained in:
2025-10-03 13:47:16 -04:00
parent caa473876a
commit defeb55503
+2 -1
View File
@@ -35,7 +35,7 @@ local core = {} :: Core
@return True if a Workspace instance is found, false otherwise. @return True if a Workspace instance is found, false otherwise.
]]-- ]]--
function core.scanForWorkspace(model: types.model, printInstanceNames: boolean): boolean function core.scanForWorkspace(model: types.model, printInstanceNames: boolean): boolean
assert(typeof(model) == "table", "Expected model to be of type 'table''") assert(typeof(model) == "table", "Expected model to be of type 'table'")
assert(typeof(printInstanceNames) == "boolean", "Expected printInstanceNames to be of type 'boolean'") assert(typeof(printInstanceNames) == "boolean", "Expected printInstanceNames to be of type 'boolean'")
for _, child in pairs(model) do for _, child in pairs(model) do
if printInstanceNames then if printInstanceNames then
@@ -93,6 +93,7 @@ end
printInstanceNames = true, printInstanceNames = true,
zlibDecompressFiles = true, zlibDecompressFiles = true,
zlibDecompressFilesRecursive = false zlibDecompressFilesRecursive = false
-- other options...
} }
if core.fileContainsWorkspace(fileContents, opts) then if core.fileContainsWorkspace(fileContents, opts) then
print("The file contains a Workspace instance.") print("The file contains a Workspace instance.")