From 3634d03f81086cbcec8df3ef1f111271562f9b5a Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 27 Dec 2021 18:36:57 +0800 Subject: [PATCH] chore(cli): remove substr usage --- cli/src/pre-publish.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/pre-publish.ts b/cli/src/pre-publish.ts index 4c79d0d8..bc4bb633 100644 --- a/cli/src/pre-publish.ts +++ b/cli/src/pre-publish.ts @@ -147,7 +147,7 @@ export class PrePublishCommand extends Command { .split('\n') .map((line) => line.trim()) .filter((line, index) => line.length && index) - .map((line) => line.substr(2)) + .map((line) => line.substring(2)) .map(this.parseTag) pkgInfo = packagesToPublish.find( (pkgInfo) => pkgInfo.name === packageName,