-
Notifications
You must be signed in to change notification settings - Fork 79
add getSignatureRegex/setSignatureRegex #45
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
Conversation
|
@willdurand ping? |
|
@willdurand any chance to get this merged and released? so i could stop using own fork. |
| public function testCustomSigRegex() | ||
| { | ||
| $regex = $this->parser->getSignatureRegex(); | ||
| $this->parser->setSignatureRegex($regex); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this test case actually test anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems not other than the method call doesn't fail. what you suggest to test there?
bed67e0 to
a7da53e
Compare
|
rebased against current master! |
|
@glensc how would you feel about giving me a hand on this project (by becoming a contributor)? |
|
@willdurand sure, i can get this merged then :D |
|
perfect, but don't forget to add a test case first 😉 |
|
i was hoping to bypass that 😈 but what to test there really? |
|
I think you could add a test case similar to the other ones (with a fixture file) but involving a different signature since you obviously need that: it will document the use case you have that led to this patch. |
testcase showing that ls -l listing is treated as signature for each file
|
alright, i'll take testcase from #42 |
|
ok, looks good? i think 2.7.0 is on the way. and i think i'll create example: https://github.com/eventum/eventum/blob/master/CHANGELOG.md |
willdurand
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! You can merge it if Travis-CI agrees.
| /** | ||
| * override regexp, not to match too greedy signature. | ||
| * | ||
| * @see https://github.com/willdurand/EmailReplyParser/pull/42 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would simply add this:
// See: https://github.com/willdurand/EmailReplyParser/pull/42.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@see is official @phpdoc annotation, phpstorm didn't make links clickable in the past. seems that's not the case anymore. can drop.
05edcd3 to
7c64d7d
Compare
|
|
||
| /** | ||
| * @return string | ||
| * @since 2.7.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I did not pay attention to that, usually I dont use this and I dont think we should be using this. The CHANGELOG file (or GitHub release) is way more expressive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, so remove the annotation and commit to master?
this is mostly to provide gateway for issues like #42
also, could you tag a release after this gets merged, thanks!