-
Notifications
You must be signed in to change notification settings - Fork 205
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
Escape key for alias to support using $ prefix in place of @ #312
Comments
@fatfisz - You pretty much coded this feature with regex. Would you mind taking a look? :) Not sure if there were any reason to that? Not sure what to do when you really want to use one of these specific regex characters. Like.. Forcing the end of the regex with |
To me it really seemed to be a simple forgotten detail in the code. The current handling is nice and I submitted #313 to fix the issue and add a test case. |
Oh, I believe you're right @Telokis. Thanks for the additional info. I'll take a deeper look in the next few days. It doesn't have anything to do with the regexes actually. Not the ones we detect when it starts with |
Hi, I'll be able to finally take a look at this today, later in the evening. |
Yup, it looks like I overlooked this. Thanks for contributing the fix ❤️ |
My pleasure! |
In my config I use the
$
prefix to point to my own directories and avoid having to type../../../
everywhere.Here is an example:
The last one will simply convert anything beginning with
$
to a directory/file inside mysrc
directory. ($helpers/
becomes./src/helpers/
)I noticed that you don't regex escape the key before using it.
Would you accept a PR to fix this?
By the way, for anyone looking for a solution to this problem, you can manually escape your keys in the config. In my case, it will become:
and this works.
The text was updated successfully, but these errors were encountered: