aboutsummaryrefslogtreecommitdiffstats
path: root/tools/feature-registry-check.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/feature-registry-check.js')
-rw-r--r--tools/feature-registry-check.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/feature-registry-check.js b/tools/feature-registry-check.js
index 0931156..5d0adc3 100644
--- a/tools/feature-registry-check.js
+++ b/tools/feature-registry-check.js
@@ -14,6 +14,7 @@ import { featureIndexSource, enabledFeatures } from '../build.js';
const strip = (s) => s
.replace(/\/\/[^\n]*/g, '') // line comments
.replace(/\s+/g, ' ') // whitespace runs
+ .replace(/,\s*([}\]])/g, '$1') // optional trailing commas
.replace(/, /g, ',').replace(/ ,/g, ',')
.trim();