From 6a5b3811e7c8f0d20e23cf8b57ac28024f2620e3 Mon Sep 17 00:00:00 2001 From: Juan Carlos Date: Sat, 7 Mar 2020 11:10:22 -0300 Subject: Add isValidFilename (#13561) * Add os.isValidFilename * Add os.isValidFilename * Peer Review Feedbacks https://github.com/nim-lang/Nim/pull/13561#discussion_r388013139 * Peer Review Feedbacks https://github.com/nim-lang/Nim/pull/13561#issuecomment-595259568 * Add since to const * Update the documentation comment * Update the changelog * Update lib/pure/os.nim Co-Authored-By: Dominik Picheta * Update lib/pure/os.nim Co-Authored-By: Dominik Picheta * Peer Review Feedbacks, Add more Tests Co-authored-by: Dominik Picheta --- changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'changelog.md') diff --git a/changelog.md b/changelog.md index 52406a972..38f9589db 100644 --- a/changelog.md +++ b/changelog.md @@ -69,7 +69,7 @@ - Added `minIndex`, `maxIndex` and `unzip` to the `sequtils` module. - Added `os.isRelativeTo` to tell whether a path is relative to another - Added `resetOutputFormatters` to `unittest` - +- Added `os.isValidFilename` that returns `true` if `filename` argument is valid for crossplatform use. - Added a `with` macro for easy function chaining that's available everywhere, there is no need to concern your APIs with returning the first argument -- cgit 1.4.1-2-gfad0 f8a803d30216e7aefa6ba'>blame commit diff stats