-
Notifications
You must be signed in to change notification settings - Fork 257
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
schematics: inputs should be sanitized #104
Comments
#177 should face this issue. I created some more tests check the options will be dasherized / camelized / normalized |
But I checked it again: special chars like "!" will still be kept. They should be filtered. |
I think replacing all special chars except const final = original.replace(/[^a-zA-Z-]/g, ''); And replacing all special chars except const final = original.replace(/[^a-zA-Z\/-]/g, ''); |
I think there are two possibly ways to handle this: @jorgeucano what do you think? |
fixed in the new version :) |
@jorgeucano shouldn't |
sent a PR: #210 |
🐞 Bug report
Description
The inputs for the schematics to create a post or markdown should be sanitized.
🔬 Minimal Reproduction
The following command generated a new post as
/blog/first/post.md
, thepost
will not be found in this case.A similar thing happens to the markdown schematic, this command creates invalid JSON in the config:
💻Your Environment
Angular Version:
Scully Version:
🔥 Exception or Error
The text was updated successfully, but these errors were encountered: