We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
offlineStore.js
1 parent 96f6422 commit f7df49bCopy full SHA for f7df49b
scripts/extractCats.js
@@ -0,0 +1,13 @@
1
+const fs = require('fs');
2
+const path = require('path');
3
+
4
+const content = fs.readFileSync(path.join(__dirname, '../frontend/src/offlineStore.js'), 'utf8');
5
+const regex = /"category":\s*"([^"]+)"/g;
6
+let match;
7
+const categories = new Set();
8
9
+while ((match = regex.exec(content)) !== null) {
10
+ categories.add(match[1]);
11
+}
12
13
+console.log('Unique Categories:', Array.from(categories).sort());
0 commit comments