aboutsummaryrefslogtreecommitdiff
path: root/node_modules/handlebars/node_modules/camelcase/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/handlebars/node_modules/camelcase/index.js')
-rw-r--r--node_modules/handlebars/node_modules/camelcase/index.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/node_modules/handlebars/node_modules/camelcase/index.js b/node_modules/handlebars/node_modules/camelcase/index.js
deleted file mode 100644
index b46e10094..000000000
--- a/node_modules/handlebars/node_modules/camelcase/index.js
+++ /dev/null
@@ -1,27 +0,0 @@
-'use strict';
-module.exports = function () {
- var str = [].map.call(arguments, function (str) {
- return str.trim();
- }).filter(function (str) {
- return str.length;
- }).join('-');
-
- if (!str.length) {
- return '';
- }
-
- if (str.length === 1 || !(/[_.\- ]+/).test(str) ) {
- if (str[0] === str[0].toLowerCase() && str.slice(1) !== str.slice(1).toLowerCase()) {
- return str;
- }
-
- return str.toLowerCase();
- }
-
- return str
- .replace(/^[_.\- ]+/, '')
- .toLowerCase()
- .replace(/[_.\- ]+(\w|$)/g, function (m, p1) {
- return p1.toUpperCase();
- });
-};