Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename 'Mac OS X' to 'macOS' #535

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mbeijen
Copy link

@mbeijen mbeijen commented Jan 9, 2023

Since 2016 it's officially named macOS:
https://en.wikipedia.org/wiki/MacOS

This is a separate change similar to the PR which has been open for a while and which has merge conflicts:

#482

Also my version comes with less gratuitous whitespace changes :D

Since 2016 it's officially named macOS:
https://en.wikipedia.org/wiki/MacOS

This is a separate change similar to the PR which has been open
for a while and which has merge conflicts:

ua-parser#482

Also my version comes without gratuitous whitespace changes :D
os_v1_replacement: '$1'
os_v2_replacement: '$2'
os_v3_replacement: '$3'
# Leopard
- regex: ' (Dar)(win)/(9).(\d+).{0,100}\((?:i386|x86_64|Power Macintosh)\)'
os_replacement: 'Mac OS X'
os_replacement: 'macOS'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

macOS was officially branded with the release of macOS 10.12 Sierra. Leopard and older are "Mac OS X" or "OSX".
Do we want, need to re-label these names as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just let me know, if you want, I can address this!

@commenthol
Copy link
Contributor

PR is a duplicate of #482

@mbeijen
Copy link
Author

mbeijen commented Jan 11, 2023

PR is a duplicate of #482

Yes indeed, I noted this in my original message. But that PR got stuck and has a merge conflict and I wanted to get this issue fixed, so I decided to make a new, similar one.

@mbeijen
Copy link
Author

mbeijen commented Feb 9, 2023

Hi @commenthol , can you look at this PR please?

@akrennmair
Copy link

I don't think this is a good idea. Such a change would break any code that depends on the specific string Mac OS X produced by the specific UA parser they use. Personally, I would prioritize the continued functioning of code depending on this more important than updating to a vendor's latest preferred branding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants