1
0
mirror of https://github.com/redis/node-redis.git synced 2025-12-08 09:22:13 +03:00
Files
node-redis/doctests
copilot-swe-agent[bot] 9e7e6e10a4 Fix TAG field search with special characters in doctest
- Remove incorrect try-catch block that hid the real issue
- Add proper escaping for special characters (@ and .) in email address
- Use correct search syntax: @email:{escaped_value}
- Add assertion to verify the search returns 1 result
- Add explanatory comment about escaping

Co-authored-by: nkaradzhov <1475500+nkaradzhov@users.noreply.github.com>
2025-10-15 15:39:08 +00:00
..
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00
2025-07-23 18:16:08 +03:00

Command examples for redis.io

Setup

To set up the examples folder so that you can run an example / develop one of your own:

$ git clone https://github.com/redis/node-redis.git
$ cd node-redis
$ npm install -ws && npm run build
$ cd doctests
$ npm install

How to add examples

Create regular node file in the current folder with meaningful name. It makes sense prefix example files with command category (e.g. string, set, list, hash, etc) to make navigation in the folder easier.

Special markup

See https://github.com/redis-stack/redis-stack-website#readme for more details.

How to test the examples

Just include necessary assertions in the example file and run

sh doctests/run_examples.sh

to test all examples in the current folder.

See tests.js for more details.