Check defaultSection for undefined as well, === null only checks for null, not undefined
Escape filter before building regular expression from string
Using a basic escaping function
Merge remote-tracking branch 'upstream/master'
cleans up bad whitespace