lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Jan 21, 2021 at 9:10 AM Egor Skriptunoff
<egor.skriptunoff@gmail.com> wrote:

> The combination of the two scripts may look like the following:
> link.target = link.target:gsub('^(.+)%.md%f[%z#]', '%1.html')
>

The %z pattern is no longer documented in Lua 5.3 and 5.4 (I did not
check 5.2 or earlier), I assume it's deprecated. I use \0, it's
perfectly legal to put null characters in the middle of Lua strings.

-- 
Gé