We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c47ca2 commit eb88c64Copy full SHA for eb88c64
src/utils.ts
@@ -34,7 +34,11 @@ const getContent = (
34
const propertiesKeys = Object.keys(block.propertiesTextValues);
35
const contentArray = data.text!.split("\n");
36
const pureContentArray = contentArray.filter((item) => {
37
- return !propertiesKeys.some((key) => item.trim().startsWith(`${key}::`));
+ return !propertiesKeys.some((key) => {
38
+ const kebabKey = key.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
39
+ const trimmedItem = item.trim();
40
+ return trimmedItem.startsWith(`${kebabKey}::`);
41
+ });
42
});
43
data.text = pureContentArray.join("\n");
44
}
0 commit comments