summary refs log tree commit diff stats
path: root/lib/js/jsre.nim
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate asm stmt for js target (#23149)ASVIEST2024-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | why ? - We already have an emit that does the same thing - The name asm itself is a bit confusing, you might think it's an alias for asm.js or something else. - The asm keyword is used differently on different compiler targets (it makes it inexpressive). - Does anyone (other than some compiler libraries) use asm instead of emit ? If yes, it's a bit strange to use asm somewhere and emit somewhere. By making the asm keyword for js target deprecated, there would be even less use of the asm keyword for js target, reducing the amount of confusion. - New users might accidentally use a non-universal approach via the asm keyword instead of emit, and then when they learn about asm, try to figure out what the differences are. see https://forum.nim-lang.org/t/10821 --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* add .replace() with callback to jsre (#21371)Qinsi (James) ZHU2023-02-161-0/+5
|
* Add missing symbols to regex (#20383)Juan Carlos2022-09-191-0/+1
| | | | | * Add missing attribute to jsre * Add missing attribute to jsre
* Fix jsre (#19917)Juan Carlos2022-06-281-3/+5
| | | | | * Fixes for jsre to make it more safe at runtime on some edge cases * https://github.com/nim-lang/Nim/pull/19917#issuecomment-1162692893
* Remove Deprecated jsre func (#19551)Juan Carlos2022-02-251-4/+0
| | | | | | | * Remove Deprecated jsre func * Remove Deprecated jsre func * ReStart CI, because OSX is dumb and I have no permission to restart
* WIP: Added missing functions to jsre module (#17881)Yanis Zafirópulos2021-05-011-0/+30
| | | | | | | * added missing functions: `replace`, `replaceAll`, `split`, `match` * added `startsWith` & `endsWith` * Update lib/js/jsre.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* Improve jsre (#17365)Juan Carlos2021-03-211-30/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add dollar for regex * Add dollar for regex * Peer review feedbacks * Peer review feedbacks * Update lib/js/jsre.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/js/jsre.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/js/jsre.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Pear review * Beer review * Beer review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* clean up the docs of some modules under lib/js (#16579)flywind2021-01-041-1/+1
|
* js module also uses runnableExamples (#16229)flywind2020-12-021-12/+9
|
* Fix #15183 (#15300)Juan Carlos2020-09-111-10/+13
|
* jsre: try to fix nightlies (#15057)Miran2020-07-241-0/+3
|
* Add jsre (#14870)Juan Carlos2020-07-031-0/+43