Skip to content

Commit 946f83c

Browse files
author
Mike Taylor
committed
Merge pull request #984 from dshgna/issue/983
Fixes #983: New issues not getting browser labels
2 parents 07ce2bf + ef1abcb commit 946f83c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
TABLET_UA = "Mozilla/5.0 (Android 4.4; Tablet; rv:41.0) Gecko/41.0 Firefox/41.0" # nopep8
3535
PARSED_NON_TABLET_BROWSER_NAME = "firefox mobile"
3636
PARSED_TABLET_BROWSER_NAME = "firefox mobile tablet"
37-
PARSED_NON_TABLET_BROWSER = "Firefox Mobile 40.0 "
37+
PARSED_NON_TABLET_BROWSER = "Firefox Mobile 40.0"
3838
PARSED_TABLET_BROWSER = "Firefox Mobile 41.0 (Tablet)"
3939

4040

webcompat/helpers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ def get_browser(user_agent_string):
133133
version = ''
134134
# Check for tablet devices
135135
if ua_dict.get('device').get('model') == 'Tablet':
136-
model = '(Tablet)'
136+
model = ' (Tablet)'
137137
else:
138138
model = ''
139-
return '{0} {1} {2}'.format(name, version, model)
139+
return '{0} {1}{2}'.format(name, version, model)
140140

141141

142142
def get_os(user_agent_string):

0 commit comments

Comments
 (0)