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: Could not extract the comment from MDF files due to replace string issue. #824

Merged
merged 1 commit into from Mar 2, 2023
Merged

Fix: Could not extract the comment from MDF files due to replace string issue. #824

merged 1 commit into from Mar 2, 2023

Conversation

KevinRodrigues05
Copy link

@KevinRodrigues05 KevinRodrigues05 commented Mar 2, 2023

Hi Daniel,

This is a small bug fix we realized when we could not extract the comment from the mdf file.
There seems to be an issue with the double and single quotes specified in the replace string.

The comment(variable) string seems to have single quotes in some of our mf4 files - xmlns='http://www.asam.net/mdf/v4'.

Hence I have provided a fix which will take care of both the cases (double & single quotes)

It is also tested on different mf4 files with my colleague Monica K. @kmonica92

Is this solution good enough if it works for you as well.

To handle both cases "double quotes" and 'single quotes" in the namespace string.
@danielhrisca danielhrisca changed the base branch from master to development March 2, 2023 10:04
@danielhrisca danielhrisca merged commit b86c7cc into danielhrisca:development Mar 2, 2023
@danielhrisca
Copy link
Owner

Thank you Kevin!

@KevinRodrigues05 KevinRodrigues05 changed the title Used regular expression Fix: Could not extract the comment from MDF files due to replace string issue. Mar 3, 2023
@KevinRodrigues05 KevinRodrigues05 deleted the namespace-replace-issue branch March 27, 2023 04:45
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