diff options
Diffstat (limited to 'node_modules/es5-ext/string/#/hyphen-to-camel.js')
-rw-r--r-- | node_modules/es5-ext/string/#/hyphen-to-camel.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/es5-ext/string/#/hyphen-to-camel.js b/node_modules/es5-ext/string/#/hyphen-to-camel.js new file mode 100644 index 000000000..20a5105cc --- /dev/null +++ b/node_modules/es5-ext/string/#/hyphen-to-camel.js @@ -0,0 +1,10 @@ +"use strict"; + +var replace = String.prototype.replace, re = /-([a-z0-9])/g; +var toUpperCase = function (ignored, a) { + return a.toUpperCase(); +}; + +module.exports = function () { + return replace.call(this, re, toUpperCase); +}; |