Using a regex for the token match instead of the duplicated call.
https://github.com/puppetlabs/facter/pull/401#discussion_r3229601