Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix regular expression for RE_PRECEDING#613

Open
hubermat wants to merge 1 commit intomscdex:master from
hubermat:master
Open

Fix regular expression for RE_PRECEDING #613
hubermat wants to merge 1 commit intomscdex:master from
hubermat:master

Conversation

@hubermat
Copy link

@hubermat hubermat commented Jun 1, 2017

The current regex also matches strings like

IDLE OK Idle completed (0.001 + 26.237 + 26.239 secs).

which it shouldn't. As a result, for IMAP servers returning the above string, the client does not correctly leave idle mode.

The regex is missing a ^ in the second case (before the +). I would have expected too, that one ^ at the beginning would be enough, but the | ignores the ^ and then every + is matched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /