Closed rinu closed 5 years ago
Example configs
{ UserAgent: '*', Allow: '/', Disallow: ['/hurrdurr1', '/hurrdurr2/'] }
and
{ UserAgent: '*', Allow: '/', Disallow: () => ['/hurrdurr1/', '/hurrdurr2/'] }
should produce the same output but don't.
When not using a function, the result has
Disallow: /hurrdurr1/ Disallow: /hurrdurr2/
but when using a function the result has
Disallow: /hurrdurr1/,/hurrdurr2/
The expected result when using a function is every Disallow using a new line, just like without a function.
Example configs
and
should produce the same output but don't.
When not using a function, the result has
but when using a function the result has
The expected result when using a function is every Disallow using a new line, just like without a function.