lib/govuk_personalisation/flash.rb in govuk_personalisation-0.12.0 vs lib/govuk_personalisation/flash.rb in govuk_personalisation-0.13.0
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string-literal: true
module GovukPersonalisation::Flash
SESSION_SEPARATOR = "$$"
MESSAGE_SEPARATOR = ","
- MESSAGE_REGEX = /\A[a-zA-Z0-9._\-]+\z/.freeze
+ MESSAGE_REGEX = /\A[a-zA-Z0-9._-]+\z/.freeze
# Splits the session header into a session value (suitable for using
# in account-api calls) and flash messages.
#
# @param encoded_session [String] the value of the `GOVUK-Account-Session` header