-
Notifications
You must be signed in to change notification settings - Fork 12
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
Params with text '-' as prefix are not rendered #16
Comments
The issue is in code that I believe @kameshsampath wrote. For some reason the code explicitly won't match anything that begins with
which causes |
Looks like this came in commit: db18c1d. Commit message implies it that it is to keep "placeholders in the code block" from being replaced @blues-man, do you know what these placeholders might refer to and whether the starter-workshop makes use of this? |
I just helped @danieloh30 workaround this. I have a fork that reverts the negative lookbehind part of the regex: https://github.com/evanshortiss/course-ui/blob/fix-url-hyphen-substitution/src/js/07-userparams-behaviour.js It would be good to understand why this change was made as @hatmarch asks. |
Thx for the help @evanshortiss I As Evan said, it works for me. Hope this fix will be applied to the new version soon. |
Oh, and BTW. To test this reverted regular expression with your content:
|
good to know. I actually updated the |
You can probably be OK with just making that change, but I am recommending a clean slate to be safe 😉 |
I got you! I will follow your tip next time :) |
With 0.1.12 version, any text (not link) with
-
character that comes before a query param is not rendered.Example:
?PROJECT=workshop&CLUSTER_SUBDOMAIN=apps.crc.testing
Will be rendered as:
http://nationalparks-%PROJECT%.apps.crc.testing
Probably this regexp is not matching it correctly?
The text was updated successfully, but these errors were encountered: