mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-18 17:08:32 +00:00
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
This commit is contained in:
@@ -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`.
|
||||
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user