From 824a2d9f587ca017fc71b84d835e72f54f9c87c4 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 7 Nov 2018 18:02:36 +0100 Subject: Began rewrite --- node_modules/locutus/python/index.js | 4 ++++ node_modules/locutus/python/index.js.map | 1 + node_modules/locutus/python/string/capwords.js | 21 +++++++++++++++++++++ node_modules/locutus/python/string/capwords.js.map | 1 + node_modules/locutus/python/string/index.js | 4 ++++ node_modules/locutus/python/string/index.js.map | 1 + 6 files changed, 32 insertions(+) create mode 100644 node_modules/locutus/python/index.js create mode 100644 node_modules/locutus/python/index.js.map create mode 100644 node_modules/locutus/python/string/capwords.js create mode 100644 node_modules/locutus/python/string/capwords.js.map create mode 100644 node_modules/locutus/python/string/index.js create mode 100644 node_modules/locutus/python/string/index.js.map (limited to 'node_modules/locutus/python') diff --git a/node_modules/locutus/python/index.js b/node_modules/locutus/python/index.js new file mode 100644 index 0000000..510b938 --- /dev/null +++ b/node_modules/locutus/python/index.js @@ -0,0 +1,4 @@ +'use strict'; + +module.exports['string'] = require('./string'); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/locutus/python/index.js.map b/node_modules/locutus/python/index.js.map new file mode 100644 index 0000000..ca12078 --- /dev/null +++ b/node_modules/locutus/python/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/python/index.js"],"names":["module","exports","require"],"mappings":";;AAAAA,OAAOC,OAAP,CAAe,QAAf,IAA2BC,QAAQ,UAAR,CAA3B","file":"index.js","sourcesContent":["module.exports['string'] = require('./string')\n"]} \ No newline at end of file diff --git a/node_modules/locutus/python/string/capwords.js b/node_modules/locutus/python/string/capwords.js new file mode 100644 index 0000000..ddd855a --- /dev/null +++ b/node_modules/locutus/python/string/capwords.js @@ -0,0 +1,21 @@ +'use strict'; + +module.exports = function capwords(str) { + // discuss at: http://locutus.io/python/capwords/ + // original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) + // improved by: Waldo Malqui Silva (http://waldo.malqui.info) + // improved by: Robin + // improved by: Kevin van Zonneveld (http://kvz.io) + // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman) + // input by: James (http://www.james-bell.co.uk/) + // example 1: capwords('kevin van zonneveld') + // returns 1: 'Kevin Van Zonneveld' + // example 2: capwords('HELLO WORLD') + // returns 2: 'HELLO WORLD' + + var pattern = /^([a-z\u00E0-\u00FC])|\s+([a-z\u00E0-\u00FC])/g; + return (str + '').replace(pattern, function ($1) { + return $1.toUpperCase(); + }); +}; +//# sourceMappingURL=capwords.js.map \ No newline at end of file diff --git a/node_modules/locutus/python/string/capwords.js.map b/node_modules/locutus/python/string/capwords.js.map new file mode 100644 index 0000000..ad1ea35 --- /dev/null +++ b/node_modules/locutus/python/string/capwords.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/python/string/capwords.js"],"names":["module","exports","capwords","str","pattern","replace","$1","toUpperCase"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,QAAT,CAAmBC,GAAnB,EAAwB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,UAAU,gDAAd;AACA,SAAO,CAACD,MAAM,EAAP,EAAWE,OAAX,CAAmBD,OAAnB,EAA4B,UAAUE,EAAV,EAAc;AAC/C,WAAOA,GAAGC,WAAH,EAAP;AACD,GAFM,CAAP;AAGD,CAjBD","file":"capwords.js","sourcesContent":["module.exports = function capwords (str) {\n // discuss at: http://locutus.io/python/capwords/\n // original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com)\n // improved by: Waldo Malqui Silva (http://waldo.malqui.info)\n // improved by: Robin\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // input by: James (http://www.james-bell.co.uk/)\n // example 1: capwords('kevin van zonneveld')\n // returns 1: 'Kevin Van Zonneveld'\n // example 2: capwords('HELLO WORLD')\n // returns 2: 'HELLO WORLD'\n\n var pattern = /^([a-z\\u00E0-\\u00FC])|\\s+([a-z\\u00E0-\\u00FC])/g\n return (str + '').replace(pattern, function ($1) {\n return $1.toUpperCase()\n })\n}\n"]} \ No newline at end of file diff --git a/node_modules/locutus/python/string/index.js b/node_modules/locutus/python/string/index.js new file mode 100644 index 0000000..0a1885d --- /dev/null +++ b/node_modules/locutus/python/string/index.js @@ -0,0 +1,4 @@ +'use strict'; + +module.exports['capwords'] = require('./capwords'); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/locutus/python/string/index.js.map b/node_modules/locutus/python/string/index.js.map new file mode 100644 index 0000000..ca77bd4 --- /dev/null +++ b/node_modules/locutus/python/string/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/python/string/index.js"],"names":["module","exports","require"],"mappings":";;AAAAA,OAAOC,OAAP,CAAe,UAAf,IAA6BC,QAAQ,YAAR,CAA7B","file":"index.js","sourcesContent":["module.exports['capwords'] = require('./capwords')\n"]} \ No newline at end of file -- cgit v1.2.3