Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fix error while parsing .editorconfig on Windows (#15)
Browse files Browse the repository at this point in the history
Resolves issue #14
  • Loading branch information
maurojs10 authored Dec 7, 2023
1 parent dfb1c41 commit e15a198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editorconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ end
function onEditorConfigExit(output, args)
log(("editorconfig core output: \n%s"):format(output))
local properties = {}
for line in output:gmatch('([^\n]+)') do
for line in output:gmatch('([^\r?\n]+)') do
local key, value = line:match('([^=]*)=(.*)')
if key == nil or value == nil then
errlog(("Failed to parse editorconfig output: %s"):format(line))
Expand Down

0 comments on commit e15a198

Please sign in to comment.