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

fix: not escaping double quotes #12

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kleinfreund
Copy link

@kleinfreund kleinfreund commented Jun 26, 2024

(Note: This PR is based on #11 and so it currently includes that PR's changes as PRs from forks can't target another fork PR's branch. Should #11 be merged, this PR will be rebased and those extra changes will vanish from this PR.)

Changes

Fix not escaping double quotes in attribute values using ".

Add jest to test DrupalAttribute's `toString` method. For this, `DrupalAttribute` was moved into its own file so it can be imported in the test without adding it to the export of index.js.
@kleinfreund kleinfreund force-pushed the fix/not-escaping-double-quotes branch from 922b8ad to 88725a8 Compare June 26, 2024 09:43
Fix not converting array of strings values. This was likely caused by naming the variable for attribute `value` and the one for the attribute value `key`. Change the variable names to be more accurate.

Add a better JSDoc type annotation for `this.args` to make more obvious when errors in normalizing attribute values occur.
@kleinfreund kleinfreund force-pushed the fix/not-escaping-double-quotes branch from 88725a8 to 11cb299 Compare January 14, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant