We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eff597a commit 0588490Copy full SHA for 0588490
crate.ts
@@ -99,7 +99,7 @@ export class Crate {
99
"gm",
100
);
101
102
- const newText = originalText.replace(findRegex, `$1"${version}"`);
+ const newText = originalText.replace(findRegex, `$1"$2${version}"`);
103
if (originalText !== newText) {
104
rootpath.writeTextSync(newText);
105
} else {
@@ -136,7 +136,7 @@ export class Crate {
136
`^(\\b${dependencyName}\\b\\s.*)"([=\\^])?[0-9]+[^"]+"`,
137
138
139
- return fileText.replace(findRegex, `$1"${version}"`);
+ return fileText.replace(findRegex, `$1"$2${version}"`);
140
});
141
142
dependency.req = `^${version}`;
0 commit comments