モデルのバリデーションの正規表現の書き方で怒られる

モデルのバリデーションで以下の様な正規表現を使って書いたら validates :published_status, presence: true, format: { with: /^[01]$/} 以下のようなメッセージで怒られました。 The provided regular expression is using multiline anchors (^ or $), which may present a security risk. Did you mean to use \A and…