]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/string/#/camel-to-hyphen.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / node-gyp / node_modules / path-array / node_modules / array-index / node_modules / es6-symbol / node_modules / es5-ext / string / # / camel-to-hyphen.js
1 'use strict';
2
3 var replace = String.prototype.replace
4   , re = /([A-Z])/g;
5
6 module.exports = function () {
7         var str = replace.call(this, re, "-$1").toLowerCase();
8         if (str[0] === '-') str = str.slice(1);
9         return str;
10 };