Match core to spec (still work to do)

This commit is contained in:
Danny McCormick
2019-05-16 17:16:39 -04:00
parent 5f66339fde
commit 917c389219
4 changed files with 63 additions and 27 deletions
+1 -2
View File
@@ -10,7 +10,7 @@ import os = require('os');
*
* Examples:
* ##[warning]This is the user warning message
* ##[set-secret name=mypassword]definatelyNotAPassword!
* ##[set-secret name=mypassword]definitelyNotAPassword!
*/
export function _issueCommand(command: string, properties: {[key: string]: string}, message: string) {
var cmd = new _Command(command, properties, message);
@@ -67,7 +67,6 @@ export class _Command {
}
export function _commandFromString(commandLine: string) {
var preLen = CMD_PREFIX.length;
var lbPos = commandLine.indexOf('[');
var rbPos = commandLine.indexOf(']');
if (lbPos == -1 || rbPos == -1 || rbPos - lbPos < 3) {