[Rpm-maint] [rpm-software-management/rpm] Add shorthand macros for some conventient Lua string operations (PR #2181)

Panu Matilainen notifications at github.com
Mon Sep 12 08:23:03 UTC 2022


Despite all the Lua magic we already do, it's annoyingly often the case that shelling out is easier (or at least shorter) than doing the same in Lua (substrings, length etc)

Add shorthand macros %gsub, %len, %lower, %rep, %reverse, %sub and %upper which simply wrap the corresponding Lua string.* functions for convenience.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/2181

-- Commit Summary --

  * Add shorthand macros for some conventient Lua string operations

-- File Changes --

    M docs/manual/macros.md (9)
    M rpmio/macro.c (23)
    M tests/rpmmacro.at (29)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/2181.patch
https://github.com/rpm-software-management/rpm/pull/2181.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2181
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/2181 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220912/8a41ba43/attachment.html>


More information about the Rpm-maint mailing list