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(references): check if object value is a string before replacement #682

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

dbanksdesign
Copy link
Member

Issue #, if available: #678

Description of changes: In the getReferences function first check if the values within an object are strings before trying to run .replace on them. It is valid to have a non-string value within an object, just like it is valid to have a non-string as a regular value (like a number for a dimension).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Collaborator

@chazzmoney chazzmoney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! :shipit:

@chazzmoney chazzmoney merged commit bfc204c into main Aug 19, 2021
@jorenbroekema jorenbroekema deleted the fix-678 branch March 26, 2024 23:16
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.

None yet

2 participants