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

Less regular expressions in bite email #107

Merged
merged 7 commits into from
Jan 21, 2018

Conversation

azumakuniyuki
Copy link
Member

@azumakuniyuki azumakuniyuki commented Jan 15, 2018

String#=~ in Sisimai::Bite::Email:* will be replaced with

  • String#start_with?
  • String#end_with?
  • String#include?

Follow up pull-request #105.

@@ -36,10 +30,11 @@ def headerlist; return []; end
def scan(mhead, mbody)
return nil unless mhead
return nil unless mbody


Copy link
Member Author

Choose a reason for hiding this comment

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

[RuboCop]

Layout/TrailingWhitespace: Trailing whitespace detected.

match = 0
tryto = [
'Mail could not be delivered',
# メッセージを配信できません。
Copy link
Member Author

Choose a reason for hiding this comment

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

[RuboCop]

Style/AsciiComments: Use only ascii symbols in comments.

'Mail could not be delivered',
# メッセージを配信できません。
'=?iso-2022-jp?B?GyRCJWElQyU7ITwlOCRyR1s/LiRHJC0kXiQ7JHMhIxsoQg==?=',
# メール配信に失敗しました
Copy link
Member Author

Choose a reason for hiding this comment

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

[RuboCop]

Style/AsciiComments: Use only ascii symbols in comments.

@coveralls
Copy link

coveralls commented Jan 15, 2018

Coverage Status

Coverage increased (+0.1%) to 93.779% when pulling c49518d on less-regular-expressions-in-bite-email into 562b36c on master.

@azumakuniyuki
Copy link
Member Author

RuboCop detected 19 issues on 258d4c6
Visit https://sideci.com/gh/31641851/pull_requests/107 to review the issues.

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.

2 participants