diff options
author | Y. Wang <yw05@forksworld.de> | 2024-03-18 02:05:14 +0100 |
---|---|---|
committer | Y. Wang <yw05@forksworld.de> | 2024-04-13 10:36:36 +0200 |
commit | 7be1254307a177300bfd8d3ba2eb120064f0ac67 (patch) | |
tree | 4aa31b04109fc264bd05ebaff6b86908790c191a /advtrains/poconvert.lua | |
parent | 458c8cff9dd2cab8460b9d8037bd37c180fc1010 (diff) | |
download | advtrains-l10n.tar.gz advtrains-l10n.tar.bz2 advtrains-l10n.zip |
Minor: str:sub -> string.sub for consistency with the rest of the codel10n
Diffstat (limited to 'advtrains/poconvert.lua')
-rw-r--r-- | advtrains/poconvert.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/poconvert.lua b/advtrains/poconvert.lua index 3075282..74f962e 100644 --- a/advtrains/poconvert.lua +++ b/advtrains/poconvert.lua @@ -13,7 +13,7 @@ do local function replace_single(pfx, c) local pl = #pfx if pl % 2 == 0 then - return pfx:sub(1, pl/2) .. c + return string.sub(pfx, 1, pl/2) .. c end return string.sub(pfx, 1, math.floor(pl/2)) .. (schartbl[c] or c) end |