1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-10 04:23:02 +00:00

Address issue #143

Fix some logic in module/expand-path.
This commit is contained in:
Calvin Rose
2019-07-15 17:35:29 -05:00
parent 0ca0180f27
commit e0fe8476aa
2 changed files with 9 additions and 0 deletions

View File

@@ -218,6 +218,10 @@ static Janet janet_core_expand_path(int32_t argc, Janet *argv) {
}
dot_count = 0;
} else {
while (dot_count > 0) {
--dot_count;
*print++ = '.';
}
dot_count = -1;
*print++ = *scan;
}