Skip to content

Commit

Permalink
Fixed bug with dot notation folders for inclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochili committed Oct 17, 2021
1 parent 08f5248 commit dae1dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion narrator/narrator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function Narrator.parseFile(path, params)
local book = parser.parse(content)

for _, inclusion in ipairs(book.inclusions) do
local folderPath = path:match('(.*' .. folderSeparator .. ')')
local folderPath = clearPath(path):match('(.*' .. folderSeparator .. ')')
local inclusionPath = folderPath .. clearPath(inclusion) .. '.ink'
local chapter = Narrator.parseFile(inclusionPath)
merge(book, chapter)
Expand Down

0 comments on commit dae1dd8

Please sign in to comment.