bazel-skylib/tests/directory
Matt 28d6034185
fix: Fix a bug in globs when middle is non-empty, but right is empty. (#516)
For example, if you try to match `*a*` against `ab`, then we check:
```
left = ""
middle = "a"
right = ""
middle in name[len(left):len(name)-len(right)]:
"a" in "ab"[len(""):len(name)-len("")]:
"a" in "ab"[0:-0]
"a" in "" => False
```

The problem here is that negative numbers in python index from the back, but -0 is not a negative number, so it always results in the empty string.
2024-05-31 07:30:03 +00:00
..
testdata Copy rules_directory to bazel-skylib. (#510) 2024-05-29 07:24:27 +02:00
BUILD Minor cleanup of directory rules. (#512) 2024-05-29 08:09:09 +02:00
directory_test.bzl Copy rules_directory to bazel-skylib. (#510) 2024-05-29 07:24:27 +02:00
external_directory_tests.bzl fix: Ensure directories work when the package is empty (#515) 2024-05-31 09:26:49 +02:00
glob_test.bzl fix: Fix a bug in globs when middle is non-empty, but right is empty. (#516) 2024-05-31 07:30:03 +00:00
subdirectory_test.bzl Copy rules_directory to bazel-skylib. (#510) 2024-05-29 07:24:27 +02:00
utils.bzl Copy rules_directory to bazel-skylib. (#510) 2024-05-29 07:24:27 +02:00