Skip to content

Commit

Permalink
Increase filename length to reduce duplicate names
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhuijzer committed Jun 27, 2021
1 parent 3001ee2 commit ccc3d23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/generate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Escape an expression to the corresponding path.
The logic in this method should match the logic in the Lua filter.
"""
function escape_expr(expr::String)
escaped = 60 < length(expr) ? expr[1:60] : expr
escaped = 100 < length(expr) ? expr[1:100] : expr
escaped = replace(escaped, r"([^a-zA-Z0-9]+)" => "_")
joinpath(GENERATED_DIR, "$escaped.md")
end
Expand Down
2 changes: 1 addition & 1 deletion src/include-codeblocks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ end
---
local md_path
function md_path(s)
escaped = string.sub(s, 1, 60)
escaped = string.sub(s, 1, 100)
escaped = escaped:gsub("([^a-zA-Z0-9]+)", "_")
-- Platform independent path separator.
path_sep = package.config:sub(1, 1)
Expand Down

0 comments on commit ccc3d23

Please sign in to comment.