28d6034185
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. |
||
---|---|---|
.. | ||
directory | ||
private | ||
BUILD | ||
analysis_test.bzl | ||
build_test.bzl | ||
common_settings.bzl | ||
copy_directory.bzl | ||
copy_file.bzl | ||
diff_test.bzl | ||
expand_template.bzl | ||
native_binary.bzl | ||
run_binary.bzl | ||
select_file.bzl | ||
write_file.bzl |