chore(cli): remove substr usage

This commit is contained in:
LongYinan 2021-12-27 18:36:57 +08:00
parent 52acde32b3
commit 3634d03f81
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -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,