Skip to content

Conversation

@ngmy
Copy link

@ngmy ngmy commented Dec 21, 2022

I am using mpociot/laravel-apidoc-generator, and I encountered an event that when I write Japanese comments in @group or method comments, all URL hashes in the generated documentation disappear.

The cause is the following line in the slugify function.

.replace(/[^\w\-]+/g, '') // Remove all non-word char

In the Japanese-speaking world, it is more natural not to do any other replace, so I would like to simply return the text.
I don't know about other multi-language areas, but I think it's better than disappearing.

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