Needs approval from an approver in each of these files:
- ~~[OWNERS](https://github.com/halo-sigs/plugin-highlightjs/blob/main/OWNERS)~~ [JohnNiang]
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
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+}.jsp
will 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?