diff --git a/src/nimblepkg/packageinfo.nim b/src/nimblepkg/packageinfo.nim index 0428d2a..9c384ff 100644 --- a/src/nimblepkg/packageinfo.nim +++ b/src/nimblepkg/packageinfo.nim @@ -463,7 +463,7 @@ proc iterFilesWithExt(dir: string, pkgInfo: PackageInfo, if kind == pcDir: iterFilesWithExt(path, pkgInfo, action) else: - if path.splitFile.ext[1 .. ^1] in pkgInfo.installExt: + if path.splitFile.ext.substr(1) in pkgInfo.installExt: action(path) proc iterFilesInDir(dir: string, action: proc (f: string)) =