📚 Is your documentation request related to a problem?
I am trying to convert the regexp /[A-Za-zÀ-ÖØ-öø-ÿ]\S*/g to magic-regexp, however I cannot figure out how to capture the section of À-ÖØ-öø-ÿ. The first bit of the character set would be covered by letter, but I cannot find any way to provide a custom character set.
Looking at the source code there simply does not seem to be any way to provide a custom character set, this could possibly be solved by exporting createInput.
📚 Is your documentation request related to a problem?
I am trying to convert the regexp
/[A-Za-zÀ-ÖØ-öø-ÿ]\S*/g
to magic-regexp, however I cannot figure out how to capture the section ofÀ-ÖØ-öø-ÿ
. The first bit of the character set would be covered byletter
, but I cannot find any way to provide a custom character set.So far my conversion is:
However this results in the
-
being escaped and the resulting regexp to be:Looking at the source code there simply does not seem to be any way to provide a custom character set, this could possibly be solved by exporting
createInput
.🔍 Where should you find it?
createInput
to be exported so it can used to achieve a custom character setℹ️ Additional context
The regex to be converted is for this file: https://github.com/sapphiredev/utilities/blob/main/packages/utilities/src/lib/toTitleCase.ts