This regex doesn't look right -- not due to this PR, just in general:

<pre>
irb(main):003:0> 'foo = {}'.match /^(\s*)(\w+)(\s*=\s*)(.*?)(\s*)$/
=> #&lt;MatchData "foo = {}" 1:"" 2:"foo" 3:" = " 4:"{...}" 5:"">
</pre>

So:

<pre>
$ be puppet config print rrddir
/Users/josh/work/puppet/{}
</pre>

where:

<pre>
[main]
rrddir={}
</pre>