We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f09510 commit e5a8e0cCopy full SHA for e5a8e0c
packages/language-server/src/lib/ast/configBlock.ts
@@ -37,13 +37,13 @@ export function getAllPreviewFeaturesFromGenerators(schema: PrismaSchema): Previ
37
* generator client {
38
* provider = "prisma-client-js"
39
* // previewFeatures = [] // This will be ignored
40
- * previewFeatures = ["views"]
+ * previewFeatures = ["views"]
41
* }
42
* ```
43
*
44
- * ? for more info: https://regex101.com/r/ezoTU2/1
+ * ? for more info: https://regex101.com/r/ezoTU2/2
45
*/
46
- const previewFeaturesRegex = /^\s*(?!\/\/\s)previewFeatures\s=\s(\[.*\])/m
+ const previewFeaturesRegex = /^\s*(?!\/\/\s)previewFeatures\s*=\s*(\[.*\])/m
47
48
const result = schema.findWithRegex(previewFeaturesRegex)
49
0 commit comments