-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
--url-swap keys can't contain colon #293
Comments
Sounds great to me! It would be extremely helpful if you make this change against the up-and-coming 3.0 branch: https://github.com/gjtorikian/html-proofer/tree/proofer-three-oh A lot of the internals have changed, compared to what's on |
Has this been fixed? In what version, and when will it be released. really need this feature ! |
I was waiting for a PR from @johnzeringue, I don't think it is fixed yet. |
I'll work on it this afternoon. Sorry, I've been busy. |
No worries! Me too! |
@johnzeringue nice! do tag me in the PR you open so I can follow it :)! |
Fixed gjtorikian#293 by adding `\\` and `\:` as escape sequences for the `--url-swap` flag. This allows command line users the same expressiveness as Ruby users.
Fixed gjtorikian#293 by adding `\\` and `\:` as escape sequences for the `--url-swap` flag. This allows command line users the same expressiveness as Ruby users.
Fixed gjtorikian#293 by adding `\\` and `\:` as escape sequences for the `--url-swap` flag. This allows command line users the same expressiveness as Ruby users.
Looking at bin/htmlproof, it's obvious that something like shown here is not possible from the command line, because the command line client simply splits each key-value pair on
:
, taking just the protocol from any URI key and prefixing the intended value.I propose using
\
as an escape character and supporting\:
and\\
as escape sequences. This allows for colons and backslashes in both keys and values. The command line equivalent of the Ruby code in the article would then behtmlproof --url-swap http\://tongueroo.com: ./_site
.@gjtorikian, if you're okay with this solution, I'd be glad to make a pull request.
The text was updated successfully, but these errors were encountered: