HomeFreeBSD

lualoader: position hyphens at the beginning of character classes

Description

lualoader: position hyphens at the beginning of character classes

According to the Lua 5.4 manual section 6.4.1 ("Patterns"), the interaction
between ranges and classes is not defined and hyphens must be specified at
either the beginning or the end of a set if they are not escaped.

Move all such occurrences to the beginning.

(cherry picked from commit b24872cf7b13314669ed2136c0262bb2eb007695)

Details

Provenance
kevansAuthored on Jan 31 2021, 3:51 PM
Parents
rG32b391d4a99c: stand: lua: enhance lfs.dir() to speed up kernels_autodetect
Branches
Unknown
Tags
Unknown