Skip to content

Commit 7cb185b

Browse files
authored
docs: fix multipart regex example (#850)
Quick fix for docs issue. Signed-off-by: Henry Schreiner <[email protected]>
1 parent 0a8a352 commit 7cb185b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

2525
Fixes:

docs/configuration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -615,10 +615,10 @@ matches from the final result. A more complex example:
615615
provider = "scikit_build_core.metadata.regex"
616616
input = "src/mypackage/version.hpp"
617617
regex = '''(?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
'''
623623
result = "{major}.{minor}.{patch}dev{dev}"
624624
remove = "dev0"

0 commit comments

Comments
 (0)