| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* Implements reverse capture indexing.
* Now works for modified backrefs too.
* Changed reverse indexing syntax prefix for back-references to '$^'.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* fixes #17768 [backport:1.4]
* tiny
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Revert "add missing import to asynchttpserver's example"
This reverts commit 7ef364a402d3d827f10c893280f8dc7b9ef056f5.
* alternative to #18185
* add std/mutexes
* cvlose #17696
* Revert "add std/mutexes"
This reverts commit 69abc8b64954206da6ffe5fc40a1142b39777762.
* tiny
* test
* improve terminal docs
* follow advice
|
|
|
|
|
| |
* move {.injectStmt.} to experimental; add a test
* undocument and deprecat `.injectStmt` but keep its implementation until we have a replacement
|
|
|
|
|
|
|
|
|
| |
* add typetraits.deref to return T in ref T|ptr T
* deref => refBase
* refBase=>pointerBase
* [skip ci] address comment
|
|
|
| |
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
| |
the var exp was typed as int32 - it should be int since frep expects an int
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
postContent (#18208)
* Fixed missing newline after bound marker in mulipart post (#14794) and a problem where calling postContent with multipart data does not set content-length header.
* Update lib/pure/httpclient.nim
* Added comment outlining the reason for changes to httpclient.nim and added tests to ensure that multipart post has a newline at the end of the body, and that the content-length header is present.
* Fixed typo in comments.
* Removed redundant blank lines in thttpclient_standalone.nim.
Co-authored-by: Mark Pointing <mark@futurepoint.com.au>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
|
|
|
|
| |
* Improve httpClient docs on SSL cert verification
Cert verification is enabled by default after CVE-2021-29495
* Update httpclient.nim
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
|
|
|
|
|
|
|
| |
* return false if AccessDeniedError in tryMoveFSObject - fixes #18216
* add moveDir & moveFile tests
* rename `isMoveDir` parameter to `isDir`
|
| |
|
| |
|
|
|
|
|
|
|
| |
* change mimedb stroe stringtable to orderedtable
* Update lib/pure/mimetypes.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
| |
(#18168)
|
| |
|
|
|
| |
This reverts commit 7ef364a402d3d827f10c893280f8dc7b9ef056f5.
|
| |
|
|
|
|
|
|
|
|
|
| |
* reuse algorithm.fill while building SkipTable
* Update lib/pure/strutils.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
|
|
|
|
|
| |
* Ref #17697 improve withValue docs
* address comments
|
| |
|
|
|
|
| |
* reduce duplicated deprecated messages
|
|
|
|
|
|
|
| |
* add `os.getCacheDir`
* fixup
* address comments
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
toOpenArray instead (#18047)
* close #16569: deprecated reversed overload, use toOpenArray instead
* [skip ci] change wording in changelog per review
* fixup
|
|
|
|
|
|
|
|
|
|
| |
* improve runnableExamples in std/httpclient
* Add synchronous example.
* Update lib/pure/httpclient.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
|
|
|
|
| |
distinguish from 0.0 (#18067)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[backport:1.2]
Copying StackTraceEntry instances when nimStackTraceOverride is defined
breaks the link between a cstring field that's supposed to point at
another string field in the same object.
Sometimes, the original object is garbage collected, that memory region
reused for storing other strings, so when the StackTraceEntry copy tries
to use its cstring pointer to construct a traceback message, it accesses
unrelated strings.
This only happens for async tracebacks and this patch prevents that by
making sure we only use the string fields when nimStackTraceOverride is
defined.
Async tracebacks also beautified slightly by getting rid of an extra line
that was supposed to be commented out, along with the corresponding debugging output.
There's also a micro-optimisation to avoid concatenating two strings just
to get their combined length.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
invalid json (#18026)
* fix #18007: std/json now serializes nan,inf,-inf as raw strings instead of invalid json
* fix roundtrip
* fix tests
* fix changelog
* simplify
* add runnableExamples
* fix typo [skip ci]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fix #17467 1st call to rand is now non-skewed; allow passing 0 as seed
* changelog + fallback
* document behavior for seed == 0
* address comments
* _
* fix tests, disable kdtree
* re-enable kdtree with -d:nimLegacyRandomInitRand
|
|
|
|
|
| |
(#17967)" (#17984)
This reverts commit f4dd95f3bee14b69caec63c3be984c4a75f43c8a.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix parseUri to sanitize urls containing ASCII newline or tab
* Fix ups based on review
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Additional fix ups based on review
- Avoid unnecessary `removeUnsafeBytesFromUri` call if parseUri is strict
- Move some parseUri tests to uri module test file
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* Update changelog
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
|
|
|
|
|
|
|
| |
* deprecate `uri.initUri` and improve uri examples
* remove `func initUri*()` and make isIpv6 optional
* fixup
|
|
|
|
|
| |
* fixed a .cursor inference bug
* added a test case
|
|
|
|
|
|
|
| |
generic (#17942)
* fix #17941: UnusedImport works for var/let/const/type invoked inside a generic
* fixup
|
| |
|
|
|
|
|
|
|
| |
* ReSync with Devel
* Fix style in parsecsv
* Update lib/pure/parsecsv.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
| |
* typo: nonexistant => nonexistent
* fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910)
|
| |
|
|
|
|
|
|
| |
(#17909)
* system.nim cleanup some exported constants which should never have been exported
|
|
|
|
|
|
| |
* [std/base64] uses runnableExamples
* Update lib/pure/base64.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
tempfiles.createTempFile (#17889)
* fix #17888: remove undefined behavior for posix.open; fix tempfiles.createTempFile
* fix for tests/async/tasyncfile.nim
* hide mode for now
* add notice regarding stability
|