提交 680d9e81 编写于 作者: M Matt Bierner

Use null for RegExpExecArray type

上级 eaf1733c
......@@ -1054,7 +1054,7 @@ export class TerminalTaskSystem implements ITaskSystem {
private collectVariables(variables: Set<string>, value: string | CommandString): void {
let string: string = Types.isString(value) ? value : value.value;
let r = /\$\{(.*?)\}/g;
let matches: RegExpExecArray;
let matches: RegExpExecArray | null;
do {
matches = r.exec(string);
if (matches) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册