(path)
| 14 | |
| 15 | |
| 16 | def check_fingerprint(path): |
| 17 | path_parts = path.split("/") |
| 18 | name_parts = path_parts[-1].split(".") |
| 19 | |
| 20 | # Check if the resource has a fingerprint |
| 21 | if len(name_parts) > 2 and cache_regex.match(name_parts[1]): |
| 22 | original_name = ".".join([name_parts[0]] + name_parts[2:]) |
| 23 | return "/".join(path_parts[:-1] + [original_name]), True |
| 24 | |
| 25 | return path, False |
searching dependent graphs…