From 487a5561cceb339e562be65bab866ed71fa86830 Mon Sep 17 00:00:00 2001 From: Rhy Moore Date: Tue, 3 Jul 2018 19:59:52 -0700 Subject: [PATCH] Convert invalid hyphens to underscores for Android --- lib/formats/android.xml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/formats/android.xml.js b/lib/formats/android.xml.js index 0499d35..f9035b3 100644 --- a/lib/formats/android.xml.js +++ b/lib/formats/android.xml.js @@ -28,7 +28,7 @@ module.exports = def => { [key]: [ { _attr: { - name: _.toUpper(prop.get("name")), + name: _.toUpper(prop.get("name")).replace(/[-]/g, "_"), category: prop.get("category") } },