diff options
author | Lauren Budorick <lauren@mapbox.com> | 2017-04-27 15:56:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-27 15:56:55 -0700 |
commit | f6e79d70735361438655f279c8699a786d25458c (patch) | |
tree | cc01ae7aba097bae4aa84beb12ac6b8f34f4d51a /scripts/style-code.js | |
parent | 839ad87f37a4880804fb4c79157d998ac59954b5 (diff) | |
download | qtlocation-mapboxgl-f6e79d70735361438655f279c8699a786d25458c.tar.gz |
[core] Render fill-extrusion layers (#8431)
Diffstat (limited to 'scripts/style-code.js')
-rw-r--r-- | scripts/style-code.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/style-code.js b/scripts/style-code.js index 156934a240..70914c5fb6 100644 --- a/scripts/style-code.js +++ b/scripts/style-code.js @@ -22,6 +22,10 @@ global.snakeCaseUpper = function snakeCaseUpper(str) { return str.replace(/-/g, "_").toUpperCase(); }; +global.unhyphenate = function (str) { + return str.replace(/-/g, " "); +}; + global.writeIfModified = function(filename, newContent) { try { const oldContent = fs.readFileSync(filename, 'utf8'); |