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:
parent
9a49451124
commit
fe791c67b4
2 changed files with 1 additions and 5 deletions
|
|
@ -43,7 +43,7 @@ becomes an alias for `addr`.
|
||||||
|
|
||||||
|
|
||||||
- Changed mimedb to use an `OrderedTable` instead of `OrderedTableRef`, to use it in a const.
|
- 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`.
|
- Removed deprecated `math.c_frexp`.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,10 +47,6 @@ func toCstring*(self: RegExp): cstring {.importjs: "#.toString()".}
|
||||||
|
|
||||||
func `$`*(self: RegExp): string = $toCstring(self)
|
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 =
|
func contains*(pattern: cstring; self: RegExp): bool =
|
||||||
## Tests for a substring match in its string parameter.
|
## Tests for a substring match in its string parameter.
|
||||||
runnableExamples:
|
runnableExamples:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue