How to block to add new js file by Herald rule

#1

We want to use Typescript replace Javascript in our project. So we want to block new *.js file , and allow to update the existent .js file.
I add a Herald rule like this Added file content matches regexp pair ["/app\\/.*\\.(js|jsx)$/", "/.*/"].
But the *.js file updating is blocked, too.
What can I do?