-
Notifications
You must be signed in to change notification settings - Fork 82
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
urlRewriteSearch and urlRewriteExpressions options don't seem to be implemented #390
Comments
Greetings! This is one of those weird things where the CLI and API accept different parameters. The CLI accepts The patterns in that array are applied here: And gently tested here 🙃 Could I trouble you for a basic reproduction steps? Are you trying to use these from the CLI, the API, the GitHub Action, or a config file? Details here would be super, super helpful! |
I wish I’d kept better notes about the code I was looking at where I didn’t find an implementation. Perhaps I looked only in index.ts for I’d tried the following:
Originally I didn’t have both search/replace and expressions, but I was getting desperate. :) I can see from the code you linked I got the format for urlRewriteExpressions totally wrong, and there should be an inner object in that array.
The json format is not obvious from the readme,
So maybe an example of |
I was having some problems getting
urlRewriteExpressions
to work. I triedurlRewriteSearch
andurlRewriteReplace
instead, but it also wasn't doing anything. I assumed I was specifying the regex wrong in some way, so I went to look at the source to try and figure out what I was supposed to pass through.Searching the code, I can see typescript interfaces and config definitions for the options, but I can't see anything in index.ts (or anywhere else) that actually does something with the options. If this is right, I guess either an implementation needs to be added or the options need to be removed from
README.MD
. I can't see any issues for this, though, so either the features are really unpopular, or I'm missing something!The text was updated successfully, but these errors were encountered: