generate-robotstxt icon indicating copy to clipboard operation
generate-robotstxt copied to clipboard

Is there any way to add Comments?

Open FlorianWerndl opened this issue 5 years ago • 1 comments

Great work, thank you!

I wonder if there is any way to add a comments to the file. My use-case is to add a decoded version of the path I added for better readability.

Now: (ony encoded) Disallow: */%D0%B7%D0%B0%D0%BF%D0%B8%D1%82%D0%B2%D0%B0%D0%BD%D0%B5$

Future: (+ decoded as comment)

...
Disallow: */%D0%B7%D0%B0%D0%BF%D0%B8%D1%82%D0%B2%D0%B0%D0%BD%D0%B5$
# Disallow: */запитване$
...

FlorianWerndl avatar Aug 10 '20 14:08 FlorianWerndl

Feel free to send a PR:

disallow: [{ type: 'directive', value: '*/тест' }, { type: 'comment', value: 'тест'}],

alexander-akait avatar Aug 10 '20 14:08 alexander-akait