-
Notifications
You must be signed in to change notification settings - Fork 89
Add ability to select path segments using Python re regexprs; follow on to PR#146 & #177 #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AlainLich
wants to merge
17
commits into
dpath-maintainers:master
Choose a base branch
from
AlainLich:AL-PR-restructRQT
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b260955
Adds support for re regular expressions in paths
AlainLich 8a468c1
Add a workflow which is launched manually within selectable branch
AlainLich b5827d3
Corrected tests/test_various_exts.py pypy-3.7 incompat.
AlainLich bccb6d0
Adds support for re regular expressions in paths
AlainLich bf42f9b
Corrected documentation
AlainLich 9ae5925
Implemented changes suggested by maintainer
AlainLich 303eb09
Test correction, testability enhancements
AlainLich 3363da2
Wording and minor changes
moomoohk 3b4eac6
Integration of re.Pattern into existing types
moomoohk d6ba501
Wording
moomoohk 4d0324d
Isolation of regex handling code
moomoohk 659824f
Remove unsupported str functions
moomoohk 6d54bd9
Rename feature flag and simplify envar code
moomoohk 4c806d1
Run tests with regex feature flag using workflow
moomoohk 1b6143d
Tests for regexp feature redone, files renamed.
AlainLich 1cfa48e
Removed unneeded workflow files. This adds a redone test_regexp.py.
AlainLich 04e4598
Merge branch 'master' into AL-PR-restructRQT
moomoohk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
from os import environ | ||
|
||
ALLOW_EMPTY_STRING_KEYS = False | ||
|
||
ALLOW_REGEX = "DPATH_ALLOW_REGEX" in environ | ||
"""Enables regular expression support. | ||
|
||
Enabling this feature will allow usage of regular expressions as part of paths. | ||
Regular expressions must be wrapped in curly brackets. For example: "a/b/{[cd]}". | ||
Expressions will be compiled using the standard library re.compile function. | ||
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.