Skip to content
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

[Bug] Documentation parsing error of backtics to spaces #32

Open
bensonce opened this issue Apr 30, 2024 · 0 comments
Open

[Bug] Documentation parsing error of backtics to spaces #32

bensonce opened this issue Apr 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bensonce
Copy link
Contributor

Backtic characters are being parsed incorrectly around code blocks from the documentation.

Current Behavior

Given the JSON string

"Checks if active IAM access keys are rotated (changed) within the number of days specified in`maxAccessKeyAge`. The rule is NON_COMPLIANT if access keys are not rotated within the specified time period. The default value is 90 days."

The result in HCL looks like this

"Checks if active IAM access keys are rotated (changed) within the number of days specified in maxAccessKeyAge . The rule is NON_COMPLIANT if access keys are not rotated within the specified time period. The default value is 90 days."

The backtic () character is being replaced by a whitespace character at the end of the maxAccessKeyAge` word.

Expected Behavior

Given the JSON string

"Checks if active IAM access keys are rotated (changed) within the number of days specified in`maxAccessKeyAge`. The rule is NON_COMPLIANT if access keys are not rotated within the specified time period. The default value is 90 days."

The result in HCLshould look like this

"Checks if active IAM access keys are rotated (changed) within the number of days specified in maxAccessKeyAge. The rule is NON_COMPLIANT if access keys are not rotated within the specified time period. The default value is 90 days."
@bensonce bensonce added the bug Something isn't working label Apr 30, 2024
@bensonce bensonce self-assigned this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant