зеркало из https://github.com/Azure/ms-rest-js.git
Merge pull request #249 from Azure/daschult/scripts
Update regular expressions to be non-greedy
This commit is contained in:
Коммит
ab12c49099
|
@ -202,7 +202,7 @@ function updateGeneratedPackageDependencyVersion(codeFilePath: string, dependenc
|
||||||
codeFilePath,
|
codeFilePath,
|
||||||
codeFileContents,
|
codeFileContents,
|
||||||
dependencyName,
|
dependencyName,
|
||||||
new RegExp(`\\\\"${dependencyName}\\\\": \\\\"(.*)\\\\"`),
|
new RegExp(`\\\\"${dependencyName}\\\\": \\\\"(.*?)\\\\"`),
|
||||||
`\\"${dependencyName}\\": \\"${newDependencyVersion}\\"`,
|
`\\"${dependencyName}\\": \\"${newDependencyVersion}\\"`,
|
||||||
newDependencyVersion);
|
newDependencyVersion);
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@ function updateGeneratedPackageDependencyVersion(codeFilePath: string, dependenc
|
||||||
codeFilePath,
|
codeFilePath,
|
||||||
codeFileContents,
|
codeFileContents,
|
||||||
dependencyName,
|
dependencyName,
|
||||||
new RegExp(`"${dependencyName}": "(.*)"`),
|
new RegExp(`"${dependencyName}": "(.*?)"`),
|
||||||
`"${dependencyName}": "${newDependencyVersion}"`,
|
`"${dependencyName}": "${newDependencyVersion}"`,
|
||||||
newDependencyVersion);
|
newDependencyVersion);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче