Open HitmanInWis opened 5 days ago
Version: 2.25.5-SNAPSHOT
A few of the example OEmbed configs are incorrectly escaping the . in the scheme regex:
.
scheme
com.adobe.cq.wcm.core.components.internal.services.embed.OEmbedClientImplConfigurationFactory-flickr.config
scheme=["https?://.*\.flickr\\.com/photos/.*","https?://flic\\.kr/p/.*"]
should be
scheme=["https?://.*\\.flickr\\.com/photos/.*","https?://flic\\.kr/p/.*"]
com.adobe.cq.wcm.core.components.internal.services.embed.OEmbedClientImplConfigurationFactory-twitter.config
scheme=["https?://(.*\.)?twitter\.com/.*"]
scheme=["https?://(.*\\.)?twitter\\.com/.*"]
com.adobe.cq.wcm.core.components.internal.services.embed.OEmbedClientImplConfigurationFactory-youtube.config
scheme=["https://.*\.youtube.com/watch.*","https://.*\.youtube.com/v/.*","https://youtu\.be/.*"]
scheme=["https://.*\\.youtube.com/watch.*","https://.*\\.youtube.com/v/.*","https://youtu\\.be/.*"]
I would recommend switching to .cfg.json serialization format, as it has simpler escaping rules and is the native format for Sling Feature Models (and meanwhile also properly supported in AEM 6.5)
.cfg.json
Version: 2.25.5-SNAPSHOT
A few of the example OEmbed configs are incorrectly escaping the
.
in thescheme
regex:com.adobe.cq.wcm.core.components.internal.services.embed.OEmbedClientImplConfigurationFactory-flickr.config
should be
com.adobe.cq.wcm.core.components.internal.services.embed.OEmbedClientImplConfigurationFactory-twitter.config
should be
com.adobe.cq.wcm.core.components.internal.services.embed.OEmbedClientImplConfigurationFactory-youtube.config
should be