Chakroun-Anas / turbo-console-log

588 stars 140 forks source link

Deleting my code when using the shortcut to delete the console #219

Open lainbo opened 1 year ago

lainbo commented 1 year ago
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    const { open, onChange } = useFileDialog({
      accept: '.szjc',
    })
    console.log("open:", open)

  </script>
</body>

</html>

When using the shortcut key to delete the log message, the entire useFileDialog will be deleted. In this example, after pressing the shortcut key, only an empty script tag will remain.

KnifeFed commented 2 months ago

Yeah, it deletes every line containing the letters "log" in succession. Kind of a big oversight.