Skip to content

Commit

Permalink
Properly handle CR in RandomWin UUID parsing
Browse files Browse the repository at this point in the history
Fixes #15
  • Loading branch information
rcloran committed Mar 1, 2024
1 parent a66063a commit 376e124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lr-inaturalist-publish.lrdevplugin/RandomWin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 376e124

Please sign in to comment.