diff options
author | Juan Carlos <juancarlospaco@gmail.com> | 2022-02-25 01:43:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-25 10:43:35 +0100 |
commit | fe791c67b4c028d2e439e6f74e0a4225ba6cc2f1 (patch) | |
tree | d5dddbf3a21244b95c0d48ee850cf0a7df966fd1 | |
parent | 9a49451124a781a2cd032b6e7616c67a7815fe57 (diff) | |
download | Nim-fe791c67b4c028d2e439e6f74e0a4225ba6cc2f1.tar.gz |
Remove Deprecated jsre func (#19551)
* Remove Deprecated jsre func * Remove Deprecated jsre func * ReStart CI, because OSX is dumb and I have no permission to restart
-rw-r--r-- | changelog.md | 2 | ||||
-rw-r--r-- | lib/js/jsre.nim | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/changelog.md b/changelog.md index 3fd66dba8..cbad9b4e6 100644 --- a/changelog.md +++ b/changelog.md @@ -43,7 +43,7 @@ becomes an alias for `addr`. - Changed mimedb to use an `OrderedTable` instead of `OrderedTableRef`, to use it in a const. - +- Removed deprecated `jsre.test` and `jsre.toString`. - Removed deprecated `math.c_frexp`. diff --git a/lib/js/jsre.nim b/lib/js/jsre.nim index a23fccaa8..cd8fb2be7 100644 --- a/lib/js/jsre.nim +++ b/lib/js/jsre.nim @@ -47,10 +47,6 @@ func toCstring*(self: RegExp): cstring {.importjs: "#.toString()".} func `$`*(self: RegExp): string = $toCstring(self) -func test*(self: RegExp; pattern: cstring): bool {.importjs: "#.test(#)", deprecated: "Use contains instead".} - -func toString*(self: RegExp): cstring {.importjs: "#.toString()", deprecated: "Use toCstring instead".} - func contains*(pattern: cstring; self: RegExp): bool = ## Tests for a substring match in its string parameter. runnableExamples: |