ECMAddAppIcon: Add sc in regex to extract extension from valid names
ClosedPublic

Authored by patrickelectric on Jan 18 2020, 1:44 PM.

Details

Summary

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>

Diff Detail

Repository
R240 Extra CMake Modules
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
Restricted Application added projects: Frameworks, Build System. · View Herald TranscriptJan 18 2020, 1:44 PM
Restricted Application added subscribers: kde-buildsystem, kde-frameworks-devel. · View Herald Transcript
patrickelectric requested review of this revision.Jan 18 2020, 1:44 PM

From ECMInstallIcons:

<size> is a numeric pixel size (typically 16, 22, 32, 48, 64, 128 or 256) or sc for scalable (SVG) files, <group> is one of the standard FreeDesktop.org icon groups (actions, animations, apps, categories, devices, emblems, emotes, intl, mimetypes, places, status) and <ext> is one of .png, .mng or .svgz.

tcanabrava accepted this revision.Jan 18 2020, 1:49 PM
This revision is now accepted and ready to land.Jan 18 2020, 1:49 PM
apol accepted this revision.Jan 19 2020, 11:25 PM

Looks good to me, bonus points if you provide a better commit message explaining what it does and how you tested it.

Add commit body

@apol I did update the commit body to explain why.
For the text I used https://regex101.com with the icon in the commit body and printing the variables of CMAKE_MATCH_1 and CMAKE_MATCH_2
Let me know if you agree with this to land the patch, this is necessary to continue D26752

This revision was automatically updated to reflect the committed changes.