-
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
Fix for property unquoting #6
base: master
Are you sure you want to change the base?
Conversation
Probably need to merge #5 first to get CI run on this one. |
Do this need a rebase so it gets GitHub actions running? |
Waiting on review for #5 from @mithro and/or @HackerFoo |
@@ -243,8 +243,9 @@ def create_property_map(self, property_map, d): | |||
entry.key = self.string_id(k) | |||
|
|||
if isinstance(v, str): | |||
if v[0] == '"' and v[-1] == '"': | |||
v = v[1:-1] | |||
if len(v) >= 2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some unit tests around this code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be best to refactor the code first, and then write some tests on the separated function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR still needs some tests?
Please rebase |
… cause a crash. Signed-off-by: Maciej Kurc <[email protected]>
a6d254b
to
2b981ec
Compare
…_files Add CMake file to build static library.
This PR fixes property unquoting code. This allows storing empty properties instead of causing a crash.