{"html_url": "https://github.com/simonw/datasette/issues/1860#issuecomment-1293863145", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1860", "id": 1293863145, "node_id": "IC_kwDOBm6k_c5NHsjp", "user": {"value": 562352, "label": "CharlesNepote"}, "created_at": "2022-10-27T17:43:37Z", "updated_at": "2022-10-27T17:43:37Z", "author_association": "NONE", "body": "Sorry I forgot the `-- comments like that`.\r\n\r\nI'm afraid there is an issue in your regexp, see: https://regex101.com/r/pyubJf/1\r\n\r\nI guess I can fix it.\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1424378012, "label": "SQL query field can't begin by a comment"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1860#issuecomment-1293912781", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1860", "id": 1293912781, "node_id": "IC_kwDOBm6k_c5NH4rN", "user": {"value": 562352, "label": "CharlesNepote"}, "created_at": "2022-10-27T18:31:15Z", "updated_at": "2022-10-27T18:31:15Z", "author_association": "NONE", "body": "Here is my suggestion:\r\n\r\n`^\\s*((?:\\-\\-.*?\\n\\s*)|(?:/\\*.*?(?=\\*/)\\*/\\s*))*select\\b`\r\n\r\nSee the following test: https://regex101.com/r/Doeqqa/1\r\n\r\nAnd here I played all your tests: https://regexr.com/713ir\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1424378012, "label": "SQL query field can't begin by a comment"}, "performed_via_github_app": null}