How to block to add new js file by Herald rule


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?