diff options
author | Alexandre Flament <alex@al-f.net> | 2023-09-16 13:45:15 +0000 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2023-09-16 18:30:57 +0000 |
commit | 72f5e7cfb8b1fc7be862bbe96e9e0123de252e5d (patch) | |
tree | 31ad90bec9e13992e5d709498874b03e72dfc9a5 /README.rst | |
parent | ec540a967a66156baa06797183cc64c4a3e345be (diff) | |
download | searxng-72f5e7cfb8b1fc7be862bbe96e9e0123de252e5d.tar.gz searxng-72f5e7cfb8b1fc7be862bbe96e9e0123de252e5d.zip |
js_variable_to_python: add tests, handle more JS syntaxupdate_js_ariable_to_python
The tests from chompjs are copied.
The comment out tests do not pass.
The implementation of js_variable_to_python has been updated:
* in the main looop, try to make the four different cases more clear
* handle decimal number like "-.5", "5." or "- 5" (without double quote)
* the character ` is seen a string delimiter as intended in JS
* the identifiers follow JS specification ($, _, letters and numbers)
Diffstat (limited to 'README.rst')
0 files changed, 0 insertions, 0 deletions