mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 04:44:15 +02:00
[wgem] returning the app name as the domain when the there are several words in the title
This commit is contained in:
@@ -84,7 +84,12 @@ class WebApplicationManager(SoftwareManager):
|
||||
name = url_no_protocol.split('.')[0].strip()
|
||||
|
||||
if name:
|
||||
name = RE_SYMBOLS_SPLIT.split(name)[0].strip()
|
||||
name_split = [token for token in RE_SYMBOLS_SPLIT.split(name) if token]
|
||||
|
||||
if len(name_split) == 1:
|
||||
name = name_split[0].strip()
|
||||
else:
|
||||
name = url_no_protocol
|
||||
|
||||
return name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user