feat: support page matching to use code highlighting #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind feature
What this PR does / why we need it:
支持通过页面匹配规则使用代码高亮功能
匹配规则使用 Apache Ant 风格的路径,有三种通配符匹配方法,它们可以组合出很多种灵活的路径模式:
?匹配任何单字符*匹配 0 或者任意数量的字符**匹配 0 或者更多的层级路径示例:
com/t?st.jsp— matches com/test.jsp but also com/tast.jsp or com/txst.jspcom/*.jsp— matches all .jsp files in the com directorycom/**/test.jsp— matches all test.jsp files underneath the com pathorg/springframework/**/*.jsp— matches all .jsp files underneath the org/springframework pathorg/**/servlet/bla.jsp— matches org/springframework/servlet/bla.jsp but also org/springframework/testing/servlet/bla.jsp and org/servlet/bla.jspcom/{filename:\\w+}.jspwill match com/test.jsp and assign the value test to the filename variableWhich issue(s) this PR fixes:
Fixes #6
Does this PR introduce a user-facing change?