Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handing empty robots.txt string #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tcz
Copy link

@tcz tcz commented Sep 5, 2024

I got bugs when the robots.txt was empty on the server, possibly due to it missing altogether.

TypeError: string.match is not a function or its return value is not iterable
  at robustSplit (src/parser.js:23:50)
  at parser (src/parser.js:62:13)
  at Context.<anonymous> (test/parser/can-parse-test-files.js:72:25)
  at process.processImmediate (node:internal/timers:478:21)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant