CRX Package Filter Include Paths With Specific Segment | Community
Skip to main content
Level 2
October 4, 2021
Solved

CRX Package Filter Include Paths With Specific Segment

  • October 4, 2021
  • 1 reply
  • 3220 views

Is it possible to configure a CRX package filter to include paths with a certain path segment in them?  I want to build a package of all content that has /config/ in the path.  I've tried multiple ways of filtering but no luck.

 

For example, I tried the below but when I excecute the package coverage preview, it doesn’t show any content being covered:

 

Root path:  /content
Rules: include .*/config/.*

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AlbinIs1

Looks to be not working for your use

Tried with the following rule - /content[/a-z]*/config/*.*

Rule including only the content under /content/config but not under different levels e.g. /content/test/config

The regex is valid and matching both cases while validating externally, seems only limited regex supported here

 

Regards

Albin I

www.albinsblog.com

 

1 reply

Community Advisor
October 4, 2021

Please try this

Root path:  /content
Rules: include *.*/config/*.*

Regards

Albin I

www.albinsblog.com

bbur3Author
Level 2
October 4, 2021

Thanks for the suggestion, but that seems to be invalid.

 

Get this error when trying to save the package with that rule:

 

Could not modify package. Dangling meta character '*' near index 0 *.*/config/*.* ^

AlbinIs1Community AdvisorAccepted solution
Community Advisor
October 4, 2021

Looks to be not working for your use

Tried with the following rule - /content[/a-z]*/config/*.*

Rule including only the content under /content/config but not under different levels e.g. /content/test/config

The regex is valid and matching both cases while validating externally, seems only limited regex supported here

 

Regards

Albin I

www.albinsblog.com