Make the line regex puppet 3.0 compatible.