File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ New features:
1919* Add ` if.failed ` (retry) by @henryiii in #820
2020* Packages can also be specified via a table by @henryiii in #841
2121* Move ` cmake.targets ` and ` cmake.verbose ` to ` build.targets ` and ` build.verbose ` by @henryiii in #793
22- * Support multipart regex by @henryiii in #818
22+ * Support multipart regex using ` result= ` by @henryiii in #818
2323* Add ` remove= ` postprocess to regex by @henryiii in #828
2424
2525Fixes:
Original file line number Diff line number Diff line change @@ -615,10 +615,10 @@ matches from the final result. A more complex example:
615615provider = " scikit_build_core.metadata.regex"
616616input = " src/mypackage/version.hpp"
617617regex = ''' (?sx)
618- \#define \w + VERSION_MAJOR \w + (?P<major>\d+) .*?
619- \#define \w + VERSION_MINOR \w + (?P<minor>\d+) .*?
620- \#define \w + VERSION_PATCH \w + (?P<patch>\d+) .*?
621- \#define \w + VERSION_DEV \w + (?P<dev>\d+) .*?
618+ \#define \s + VERSION_MAJOR \s + (?P<major>\d+) .*?
619+ \#define \s + VERSION_MINOR \s + (?P<minor>\d+) .*?
620+ \#define \s + VERSION_PATCH \s + (?P<patch>\d+) .*?
621+ \#define \s + VERSION_DEV \s + (?P<dev>\d+) .*?
622622'''
623623result = " {major}.{minor}.{patch}dev{dev}"
624624remove = " dev0"
You can’t perform that action at this time.
0 commit comments