fix: handle capitalized letters in pywal colors (#40)

Co-authored-by: mtoohey31 <mtoohey31@users.noreply.github.com>
This commit is contained in:
Matthew Toohey 2021-09-08 19:25:31 -04:00 committed by GitHub
parent 1e72ae9ae3
commit 1f4df948c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ end
local colors = {}
for line in vim.gsplit(wal_colors_text, '\n') do
if line:match "^[a-z0-9]+='#[a-f0-9]+'" ~= nil then
if line:match "^[a-z0-9]+='#[a-fA-F0-9]+'$" ~= nil then
local i = line:find '='
local key = line:sub(0, i - 1)
local value = line:sub(i + 2, #line - 1)