sub _inflate {
my ($self, $type, $path, $io) = @_;
- (my $cache_name = $io->name) =~ s/\/([^\/]+)$/\/.htcache.$1.json/;
+ (my $cache_name = $io->name) =~ s/[\\\/]([^\/\\]+)$/\/.htcache.$1.json/;
my $cache = io($cache_name);
my @config_files = $self->_config_files_for($path);
my $max_stat = max map $_->mtime, $io, @config_files;