[Truffle] Fix regexp errors.