Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
68d0124c24 | |||
16f41a7d63 | |||
d13dfc9e76 | |||
942f6b37cf | |||
211c7c3308 | |||
a55d6d2221 |
@ -27,6 +27,7 @@ testSTABLE:
|
|||||||
|
|
||||||
release:
|
release:
|
||||||
stage: release
|
stage: release
|
||||||
|
environment: npmjs-com_registry
|
||||||
script:
|
script:
|
||||||
- npmci publish
|
- npmci publish
|
||||||
only:
|
only:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
handle strings in smart ways. TypeScript ready.
|
handle strings in smart ways. TypeScript ready.
|
||||||
|
|
||||||
## Status
|
## Status
|
||||||
[](https://travis-ci.org/pushrocks/smartstring)
|
[](https://gitlab.com/pushrocks/smartstring/commits/master)
|
||||||
[](https://david-dm.org/pushrocks/smartstring)
|
[](https://david-dm.org/pushrocks/smartstring)
|
||||||
[](https://www.bithound.io/github/pushrocks/smartstring/master/dependencies/npm)
|
[](https://www.bithound.io/github/pushrocks/smartstring/master/dependencies/npm)
|
||||||
[](https://www.bithound.io/github/pushrocks/smartstring)
|
[](https://www.bithound.io/github/pushrocks/smartstring)
|
||||||
|
4
dist/smartstring.docker.js
vendored
4
dist/smartstring.docker.js
vendored
@ -7,11 +7,13 @@
|
|||||||
exports.makeEnvObject = function (envArrayArg) {
|
exports.makeEnvObject = function (envArrayArg) {
|
||||||
let returnObject = {};
|
let returnObject = {};
|
||||||
let regexString = /(.*)=(.*)/;
|
let regexString = /(.*)=(.*)/;
|
||||||
|
if (typeof envArrayArg !== "undefined") {
|
||||||
for (let envKey in envArrayArg) {
|
for (let envKey in envArrayArg) {
|
||||||
let regexMatches = regexString.exec(envArrayArg[envKey]);
|
let regexMatches = regexString.exec(envArrayArg[envKey]);
|
||||||
returnObject[regexMatches[1]] = regexMatches[2];
|
returnObject[regexMatches[1]] = regexMatches[2];
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
}
|
||||||
return returnObject;
|
return returnObject;
|
||||||
};
|
};
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xDQUFDLENBQUMsQ0FBQztRQUNyQyxHQUFHLENBQUMsQ0FBQyxJQUFJLE1BQU0sSUFBSSxXQUFXLENBQUMsQ0FBQyxDQUFDO1lBQzdCLElBQUksWUFBWSxHQUFHLFdBQVcsQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUM7WUFDekQsWUFBWSxDQUFDLFlBQVksQ0FBQyxDQUFDLENBQUMsQ0FBQyxHQUFHLFlBQVksQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUNwRCxDQUFDO1FBQUEsQ0FBQztJQUNOLENBQUM7SUFDRCxNQUFNLENBQUMsWUFBWSxDQUFDO0FBQ3hCLENBQUMsQ0FBQyJ9
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "smartstring",
|
"name": "smartstring",
|
||||||
"version": "2.0.15",
|
"version": "2.0.17",
|
||||||
"description": "handle strings in smart ways. TypeScript ready.",
|
"description": "handle strings in smart ways. TypeScript ready.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
@ -22,12 +22,12 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://gitlab.com/pushrocks/smartstring#readme",
|
"homepage": "https://gitlab.com/pushrocks/smartstring#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"npmts-g": "^5.2.6",
|
"npmts-g": "^5.2.8",
|
||||||
"should": "^9.0.2",
|
"should": "^10.0.0",
|
||||||
"typings-test": "^1.0.1"
|
"typings-test": "^1.0.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"beautylog": "^5.0.13",
|
"beautylog": "^5.0.20",
|
||||||
"typings-global": "^1.0.6"
|
"typings-global": "^1.0.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,12 +5,14 @@ import * as plugins from "./smartstring.plugins";
|
|||||||
* @param envArrayArg
|
* @param envArrayArg
|
||||||
* @returns {}
|
* @returns {}
|
||||||
*/
|
*/
|
||||||
export let makeEnvObject = function(envArrayArg:string[]){
|
export let makeEnvObject = function (envArrayArg: string[]) {
|
||||||
let returnObject = {};
|
let returnObject = {};
|
||||||
let regexString = /(.*)=(.*)/;
|
let regexString = /(.*)=(.*)/;
|
||||||
for(let envKey in envArrayArg){
|
if (typeof envArrayArg !== "undefined") {
|
||||||
|
for (let envKey in envArrayArg) {
|
||||||
let regexMatches = regexString.exec(envArrayArg[envKey]);
|
let regexMatches = regexString.exec(envArrayArg[envKey]);
|
||||||
returnObject[regexMatches[1]] = regexMatches[2];
|
returnObject[regexMatches[1]] = regexMatches[2];
|
||||||
};
|
};
|
||||||
|
}
|
||||||
return returnObject;
|
return returnObject;
|
||||||
};
|
};
|
Reference in New Issue
Block a user