fix filename updating for smartfile

This commit is contained in:
2017-05-28 00:12:02 +02:00
parent 495c3afdc3
commit 7909bd1a38
2 changed files with 3 additions and 3 deletions

View File

@ -141,6 +141,6 @@ export class Smartfile {
// update things
updateFileName (fileNameArg: string) {
let oldFileName = this.parsedPath.base
this.path.replace(new RegExp(oldFileName + '$'),fileNameArg)
this.path = this.path.replace(new RegExp(oldFileName + '$'),fileNameArg)
}
}