Hi, thanks for reporting an issue with Cursor.
Before you report this, we’d appreciate if you can search this forum to see if this issue has already been reported.
If you have done so, please check this box.
on
Describe the Bug
I was asking for a regex to normalize some text. I have the slanted ticks (’) in my text, but i want them to turn into ’ just to keep things simple. I was confused why it wasn’t matching, and thats when i realized even when i explictly asked the AI to use the slanted tick to replace with the regular one, it was looking for two standard ticks, so obviously not matching.
Steps to Reproduce
command + L while selecting a target string of text, ask the ai to “write a regex that detects ’ in text, and replace it with ’ output the result”
Provide a string containing the match character as your target, and notice it generates a regex that doesnt work as it always uses the wrong tick for matching.
Expected Behavior
Non-standard characters should be supported, especially when i am explicit about what i want.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 0.44.9 VSCode Version: 1.93.1 Commit: 316e524257c2ea23b755332b0a72c50cf23e1b00 Date: 2024-12-26T21:58:59.149Z Electron: 30.5.1 Chromium: 124.0.6367.243 Node.js: 20.16.0 V8: 12.4.254.20-electron.0 OS: Darwin arm64 24.0.0
Additional Information
This totally stumped me for 30 mins because I’m stupid and these characters look similar.
Does this stop you from using Cursor
No - Cursor works, but with this issue