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

Make SplitQuotedString always returns a result #42

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Jun 4, 2024

If the function SplitQuotedString finds an opening quote character and does not find the closing quote character, it will return an error.

Previously, in case of error, the returned split array was always empty.
Now the function will return the split array up to the point where the first error occurred, allowing the caller to ignore the error if needed.

If the function finds an opening quote character and does not find the
closing quote character, it will return an error.

Previously, in case of error, the returned split array was always empty.

Now, in any case, the function will return the split array up to the
point where the error occurred.
@cmaglie cmaglie self-assigned this Jun 4, 2024
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jun 4, 2024
@cmaglie cmaglie merged commit 3bde8d7 into master Jun 5, 2024
11 checks passed
@cmaglie cmaglie deleted the improve_split branch June 5, 2024 08:18
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jun 5, 2024
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jun 5, 2024
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jun 5, 2024
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jun 5, 2024
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jun 13, 2024
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Aug 8, 2024
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Jan 20, 2025
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Feb 13, 2025
The new release of the library allow ignoring the returned error.

arduino/go-properties-orderedmap#42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants