Skip to content

The client encounters a bug when pasting Lua scripts #5291

@xavier-xu99

Description

@xavier-xu99

This is the content of my script.

EVAL "local currentDate = KEYS[1]; local result = {}; for i, key in pairs(redis.call('KEYS', '2023????')) do if tonumber(key) < tonumber(currentDate) then redis.call('DEL', key); table.insert(result, key); end end; redis.call('EXPIRE', currentDate, 86400); return result" 1 20230323 ;

When I copy and paste this script into the client, all content after the '<' (less than) sign is lost. I have to manually input the '<' sign and then paste the remaining content into the client separately.

image
image

  • OS & version: [Windows 10 21H2]
  • Redis-Server version [2021.2]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions