fix transform RegExp