Fix #311. Add regex to check for field assignment