bazel-skylib/rules
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
..
directory fix: Fix a bug in globs when middle is non-empty, but right is empty. (#516) 2024-05-31 07:30:03 +00:00
private Re-add `licenses()` - internal license checker still requires it :/ (#506) 2024-05-02 14:38:05 -04:00
BUILD Re-add `licenses()` - internal license checker still requires it :/ (#506) 2024-05-02 14:38:05 -04:00
analysis_test.bzl Fix linter warnings with new buildifier version. (#349) 2022-02-10 14:50:56 -05:00
build_test.bzl Avoid building build_test deps unnecessarily (#448) 2023-05-31 11:37:12 -04:00
common_settings.bzl Expose int- and string-valued build settings as Make variables (#440) 2023-08-22 19:41:36 +00:00
copy_directory.bzl Add copy_directory rule (#366) 2022-06-01 09:58:09 +02:00
copy_file.bzl maprule: hide it, not ready for public use. (#133) 2019-03-20 18:13:32 +01:00
diff_test.bzl Bump stardoc dep to unbreak build with --experimental_enable_bzlmod (#398) 2022-10-03 05:13:46 -04:00
expand_template.bzl expand_template: do not output_to_genfiles (#493) 2024-03-20 17:56:10 -04:00
native_binary.bzl Make `out` on `native_binary` optional (#474) 2024-04-24 15:40:31 -04:00
run_binary.bzl Support modern location expansions for run_binary (#490) 2024-04-30 17:19:34 -04:00
select_file.bzl Add missing docs and doc links; update bazel.build links (#387) 2022-09-01 08:19:43 -04:00
write_file.bzl maprule: hide it, not ready for public use. (#133) 2019-03-20 18:13:32 +01:00