diff --git a/compiler/modulepaths.nim b/compiler/modulepaths.nim index fa8fab08a..63b0cb44d 100644 --- a/compiler/modulepaths.nim +++ b/compiler/modulepaths.nim @@ -73,6 +73,17 @@ proc checkModuleName*(conf: ConfigRef; n: PNode; doLocalError=true): FileIndex = else: result = fileInfoIdx(conf, fullPath) +proc rot13(result: var string) = + # don't mangle .nim + let finalIdx = + if result.endsWith(".nim"): result.len - 4 + else: result.len + for i, c in result[0..