diff options
author | Timo Teräs <timo.teras@iki.fi> | 2022-01-21 14:47:54 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2022-01-21 14:52:27 +0200 |
commit | 1bc08a142cc8a9b35ef2e7d15d58ece3b8e00995 (patch) | |
tree | 64e42bdcdec2bd4fd8a740628add53a39769a401 | |
parent | a6126a6f2362ee47e91acb25083e1b112a57640a (diff) | |
download | apk-tools-1bc08a142cc8a9b35ef2e7d15d58ece3b8e00995.tar.gz apk-tools-1bc08a142cc8a9b35ef2e7d15d58ece3b8e00995.tar.bz2 apk-tools-1bc08a142cc8a9b35ef2e7d15d58ece3b8e00995.tar.xz apk-tools-1bc08a142cc8a9b35ef2e7d15d58ece3b8e00995.zip |
genhelp: fix upper case substition
-rw-r--r-- | src/genhelp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genhelp.lua b/src/genhelp.lua index 06a3590..4f5421b 100644 --- a/src/genhelp.lua +++ b/src/genhelp.lua @@ -139,7 +139,7 @@ function scdoc:parse_default(ln) ln = ln:gsub("([^\\])%*(.-[^\\])%*", "%1%2") ln = ln:gsub("^%*(.-[^\\])%*", "%1") ln = ln:gsub("([^\\])_(.-[^\\])_", function(a,s) return a..s:upper() end) - ln = ln:gsub("^_(.-[^\\])_", function(a,s) return a..s:upper() end) + ln = ln:gsub("^_(.-[^\\])_", function(s) return s:upper() end) ln = ln:gsub("\\", "") self:section_text(ln) |