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

Commit e15a198

Browse files
authored
Fix error while parsing .editorconfig on Windows (#15)
Resolves issue #14
1 parent dfb1c41 commit e15a198

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

editorconfig.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ end
111111
function onEditorConfigExit(output, args)
112112
log(("editorconfig core output: \n%s"):format(output))
113113
local properties = {}
114-
for line in output:gmatch('([^\n]+)') do
114+
for line in output:gmatch('([^\r?\n]+)') do
115115
local key, value = line:match('([^=]*)=(.*)')
116116
if key == nil or value == nil then
117117
errlog(("Failed to parse editorconfig output: %s"):format(line))

0 commit comments

Comments
 (0)