Serial ports on many versions of Raspberry PI appear as devices with the prefix /dev/ttyAMA. Some notes can be found here: https://elinux.org/RPi_Serial_Connection
This change updates the regular expression that asserts a correctly formed port to provide compatibility with RPI serial.
I don't see tests that assert the behavior of correct formats, just some tests to assert behavior when a bad port is provided. Thus, not going to make changes to tests - please let me know if I should consider otherwise.
Serial ports on many versions of Raspberry PI appear as devices with the prefix
/dev/ttyAMA
. Some notes can be found here: https://elinux.org/RPi_Serial_ConnectionThis change updates the regular expression that asserts a correctly formed port to provide compatibility with RPI serial.
I don't see tests that assert the behavior of correct formats, just some tests to assert behavior when a bad port is provided. Thus, not going to make changes to tests - please let me know if I should consider otherwise.