When finding possible tips for the mainline branch the key is used instead of the regex defined in the branch configuration.
eg. with the default regex for master branch configuration of master$ it will still match using the key (master) as shown here:
INFO [01/25/18 8:36:43:86] Found possible mainline branches: feature/masterdetail, master
INFO [01/25/18 8:36:43:86] Mainline for current branch is feature/masterdetail