diff --git a/lr-inaturalist-publish.lrdevplugin/RandomWin.lua b/lr-inaturalist-publish.lrdevplugin/RandomWin.lua index cb6513f..60fcc30 100644 --- a/lr-inaturalist-publish.lrdevplugin/RandomWin.lua +++ b/lr-inaturalist-publish.lrdevplugin/RandomWin.lua @@ -43,7 +43,7 @@ end local function getUUIDs() local vbs = LrPathUtils.child(_PLUGIN.path, "uuid.vbs") local output = execWithOutput('cscript /NoLogo "' .. vbs .. '"') - for line in output:gmatch("([^\n]+)\n") do + for line in output:gmatch("([^\r\n]+)\r?\n") do if not isUUID(line) then return false end