News for hackers. Stuff that matters.
Re:Ask HN: How do you make sure your servers are up as a sin... by cutler on Wednesday November 06, 2019 @09:40PM (#21469900)
In Ruby:

    %w[fatal invalid unknown error except critical cannot].any? {|word| 'My critical error message'.include? word}
... may be better than a regex if it's just a list of literal strings. Javascript also has something similar.

There are no comments on this comment yet.