zed icon indicating copy to clipboard operation
zed copied to clipboard

Escape line gets deleted with auto-format on, even in Regex queries.

Open yorunoken opened this issue 6 months ago • 0 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

write the following in index.js

const educationDuration = "(İÖ) (Ücretli) (2 Yıllık)";
        
// Regular expression to match a number followed by " Yıllık"
const match = educationDuration.match(/(\d+)\s*Yıllık/); // the `\d` and `\s` will become `d` and `s` after the auto-format.
        
console.log(match); // Will return `undefined` every single time because when the file is saved, the auto-formatter will remove `/`

Environment

Zed: v0.148.1 (Zed) OS: Linux Wayland arch unknown Memory: 15.5 GiB Architecture: x86_64 GPU: AMD Radeon RX 6600 XT (RADV NAVI23) || radv || Mesa 24.2.0-arch1.1

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

yorunoken avatar Aug 17 '24 16:08 yorunoken