1
0
Fork 0
mirror of https://github.com/matomo-org/matomo-icons.git synced 2024-09-19 17:03:45 +02:00

unify file naming

This commit is contained in:
Lukas Winkler 2019-08-13 16:46:49 +02:00
parent f2f75e61da
commit 3d5f8bd6b3
Signed by: lukas
GPG key ID: 54DE4D798D244853
11 changed files with 5 additions and 4 deletions

View file

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

Before

Width:  |  Height:  |  Size: 496 B

After

Width:  |  Height:  |  Size: 496 B

View file

Before

Width:  |  Height:  |  Size: 334 B

After

Width:  |  Height:  |  Size: 334 B

View file

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View file

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -29,7 +29,7 @@ less_important_device_detector_icons:
- Assistant
- AVH
- Axxion
- Barnes_&_Noble
- Barnes_Noble
- BenQ-Siemens
- Bird
- Black_Fox
@ -133,7 +133,7 @@ less_important_device_detector_icons:
- Lingwin
- Logicom
- Lumus
- M.T.T.
- M_T_T_
- Majestic
- Maze
- Mecer
@ -160,7 +160,7 @@ less_important_device_detector_icons:
- Noain
- Nomi
- Nous
- O+
- O_
- Opsson
- Ouki
- OUYA

View file

@ -197,11 +197,12 @@ def test_if_there_are_icons_for_all_device_detector_categories(less_important_de
process = Popen(["php", "devicedetector.php"], stdout=PIPE)
(output, err) = process.communicate()
process.wait()
regex = re.compile(r"[^a-z0-9_\-äöü]+",re.IGNORECASE)
categories = json.loads(output)
for icontype, category in categories.items():
for code in category:
if icontype == "brand":
slug = category[code].replace(" ", "_")
slug = regex.sub("_", category[code])
else:
slug = code
found = False