lib/decidim/content_renderers/proposal_renderer.rb in decidim-proposals-0.23.6 vs lib/decidim/content_renderers/proposal_renderer.rb in decidim-proposals-0.24.0.rc1
- old
+ new
@@ -8,10 +8,10 @@
# e.g. gid://<APP_NAME>/Decidim::Proposals::Proposal/1
#
# @see BaseRenderer Examples of how to use a content renderer
class ProposalRenderer < BaseRenderer
# Matches a global id representing a Decidim::User
- GLOBAL_ID_REGEX = %r{gid:\/\/([\w-]*\/Decidim::Proposals::Proposal\/(\d+))}i.freeze
+ GLOBAL_ID_REGEX = %r{gid://([\w-]*/Decidim::Proposals::Proposal/(\d+))}i.freeze
# Replaces found Global IDs matching an existing proposal with
# a link to its show page. The Global IDs representing an
# invalid Decidim::Proposals::Proposal are replaced with '???' string.
#