[snapshot] Fixed screen name displayed in screenshots.html (#14090)
[snapshot] Fixed screen name displayed in screenshots.html (#14090)

* [snapshot] Fixed screen name bug in screenshots.html

A bug caused part of the device name to be included in the screen name
in some cases. To be specific, this happened when the device name
contained a “-“.

* [snapshot] Fixed code style

marcelofabri/fastlane,lacostej/fastlane,manuyavuz/fastlane,Econa77/fastlane,tmtrademarked/fastlane,manuyavuz/fastlane,tmtrademarked/fastlane,mgrebenets/fastlane,Econa77/fastlane,bassrock/fastlane,manuyavuz/fastlane,icecrystal23/fastlane,kazuhidet/fastlane,kazuhidet/fastlane,KrauseFx/fastlane,nafu/fastlane,kazuhidet/fastlane,kohtenko/fastlane,joshdholtz/fastlane,jaleksynas/fastlane,cpk1/fastlane,tmtrademarked/fastlane,manuyavuz/fastlane,lacostej/fastlane,fastlane/fastlane,jaleksynas/fastlane,brbulic/fastlane,cpk1/fastlane,brbulic/fastlane,tmtrademarked/fastlane,taquitos/fastlane,lacostej/fastlane,joshdholtz/fastlane,icecrystal23/fastlane,lacostej/fastlane,taquitos/fastlane,joshdholtz/fastlane,Econa77/fastlane,brbulic/fastlane,nafu/fastlane,bassrock/fastlane,kazuhidet/fastlane,tmtrademarked/fastlane,bassrock/fastlane,KrauseFx/fastlane,bolom/fastlane,cpk1/fastlane,brbulic/fastlane,bolom/fastlane,mgrebenets/fastlane,jaleksynas/fastlane,bassrock/fastlane,icecrystal23/fastlane,jaleksynas/fastlane,KrauseFx/fastlane,taquitos/fastlane,mgrebenets/fastlane,Econa77/fastlane,icecrystal23/fastlane,kazuhidet/fastlane,joshdholtz/fastlane,bolom/fastlane,mgrebenets/fastlane,marcelofabri/fastlane,KrauseFx/fastlane,fastlane/fastlane,kazuhidet/fastlane,Econa77/fastlane,kohtenko/fastlane,marcelofabri/fastlane,bassrock/fastlane,mbogh/fastlane,kazuhidet/fastlane,fastlane/fastlane,taquitos/fastlane,jaleksynas/fastlane,fastlane/fastlane,mbogh/fastlane,bolom/fastlane,cpk1/fastlane,bolom/fastlane,brbulic/fastlane,nafu/fastlane,joshdholtz/fastlane,taquitos/fastlane,bolom/fastlane,tmtrademarked/fastlane,jaleksynas/fastlane,icecrystal23/fastlane,taquitos/fastlane,icecrystal23/fastlane,tmtrademarked/fastlane,mbogh/fastlane,taquitos/fastlane,mgrebenets/fastlane,marcelofabri/fastlane,mbogh/fastlane,bolom/fastlane,lacostej/fastlane,nafu/fastlane,KrauseFx/fastlane,Econa77/fastlane,joshdholtz/fastlane,lacostej/fastlane,mgrebenets/fastlane,Econa77/fastlane,fastlane/fastlane,marcelofabri/fastlane,mbogh/fastlane,nafu/fastlane,jaleksynas/fastlane,manuyavuz/fastlane,nafu/fastlane,fastlane/fastlane,mbogh/fastlane,manuyavuz/fastlane,KrauseFx/fastlane,cpk1/fastlane,bassrock/fastlane,manuyavuz/fastlane,marcelofabri/fastlane,cpk1/fastlane,cpk1/fastlane,KrauseFx/fastlane,brbulic/fastlane,nafu/fastlane,marcelofabri/fastlane,mgrebenets/fastlane,mbogh/fastlane,brbulic/fastlane,joshdholtz/fastlane