Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/util/__tests__/AlmanacNamesTestCase.php
Show All 24 Lines | $map = array( | ||||
'a.-' => false, | 'a.-' => false, | ||||
'a.-b' => false, | 'a.-b' => false, | ||||
'a.b-' => false, | 'a.b-' => false, | ||||
'-.-' => false, | '-.-' => false, | ||||
'a--b' => false, | 'a--b' => false, | ||||
'abc' => true, | 'abc' => true, | ||||
'a.b' => true, | 'a.b' => true, | ||||
'db.phacility.instance' => true, | 'db.companyname.instance' => true, | ||||
'web002.useast.example.com' => true, | 'web002.useast.example.com' => true, | ||||
'master.example-corp.com' => true, | 'master.example-corp.com' => true, | ||||
// Maximum length is 100. | // Maximum length is 100. | ||||
str_repeat('a', 100) => true, | str_repeat('a', 100) => true, | ||||
str_repeat('a', 101) => false, | str_repeat('a', 101) => false, | ||||
); | ); | ||||
Show All 14 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0