Fix #311. Add regex to check for field assignment
Update fix for E731

Thanks to @mypalmike for thinking of the extra cases
Merge pull request #312 from sigmavirus24/bug/311

Fix #311. Add regex to check for field assignment