Skip to content

Conversation

@DaneSlattery
Copy link
Contributor

@DaneSlattery DaneSlattery commented Oct 2, 2024

Previously, this failed to detect download mode during this regex match in the following message.

ESP-ROM:esp32s3-20210327
    Build:Mar 27 2021
    rst:0x1 (POWERON),boot:0x0 (DOWNLOAD(USB/UART0))
    waiting for download

.* only matches on any character EXCEPT line breaks, where as [\s\S] will match on anything.

Previously, this failed to detect download mode during this regex match in the following message.

```
ESP-ROM:esp32s3-20210327
    Build:Mar 27 2021
    rst:0x1 (POWERON),boot:0x0 (DOWNLOAD(USB/UART0))
    waiting for download

```

`.*` only matches on any character EXCEPT line breaks,  where as [\s\S]` will match on anything.
Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! Although its only one line, it probably deserves a changelog entry. Mind adding it?

@jessebraham
Copy link
Member

What is going on with CI? It was passing before, I just updated the Changelog. Sorry about that 😅

@SergioGasquez
Copy link
Member

It was passing before, I just updated the Changelog.

I think it wasn't passing before, rustfmt is complaining about some spaces :(

@DaneSlattery
Copy link
Contributor Author

ci is green!

Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

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

Thanks for fixing it!

@SergioGasquez SergioGasquez added this pull request to the merge queue Oct 10, 2024
Merged via the queue into esp-rs:main with commit 7b0c6ac Oct 10, 2024
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.

4 participants