Skip to content

Commit

Permalink
Update inject-css.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
kozyakin committed Nov 18, 2024
1 parent 06a8744 commit b8e59f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/inject-css.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local html = readFile(filehtml)
local csstmp = readFile(filecss)
local css = csstmp:gsub('%%', '%%%%')

local spattern = "<link .*href='" .. filecss .. ".*css'%s*/>"
local spattern = "<link .*href='" .. filecss .. "'.-/>"
local rpattern = "<style type='text/css'>\n\n<!--\n" .. css .. "\n\n-->\n</style>"

local htmltmp = html:gsub(spattern, rpattern)
Expand Down

0 comments on commit b8e59f3

Please sign in to comment.