Skip to content

[std.regex] Fix issue 17458 - add messages to asserts#5660

Merged
dlang-bot merged 1 commit intodlang:masterfrom
DmitryOlshansky:issue-17458
Jul 26, 2017
Merged

[std.regex] Fix issue 17458 - add messages to asserts#5660
dlang-bot merged 1 commit intodlang:masterfrom
DmitryOlshansky:issue-17458

Conversation

@DmitryOlshansky
Copy link
Copy Markdown
Member

No description provided.

@dlang-bot
Copy link
Copy Markdown
Contributor

Thanks for your pull request, @DmitryOlshansky!

Bugzilla references

Auto-close Bugzilla Description
17458 [std.regex] Assertion failure in package.d

Copy link
Copy Markdown
Member

@UplinkCoder UplinkCoder left a comment

Choose a reason for hiding this comment

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

LGTM

@CyberShadow
Copy link
Copy Markdown
Member

Thanks!

BTW, nitpicking but generally exception messages are capitalized (like a sentence, but without trailing punctuation).

@DmitryOlshansky
Copy link
Copy Markdown
Member Author

BTW, nitpicking but generally exception messages are capitalized (like a sentence, but without trailing punctuation).

I just followed what I had in this module. I'm not opposed to wholesale change of asserts in std.regex

@CyberShadow
Copy link
Copy Markdown
Member

I just followed what I had in this module.

I found just one existing instance (

assert(_f + i < _b,text("requested submatch number ", i," is out of range"));
).

I'm not opposed to wholesale change of asserts in std.regex

Feel free to, or to not :) It might be better to wait for #5578 , then it should be easier to find and fix the remaining message-less asserts, and update the messages on the other ones along the way.

@dlang-bot dlang-bot merged commit 008a8a3 into dlang:master Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants