fixed wildcard domain regex, CS changes

-as regex was, it would allow something like "myexample.com" to pass
-attempt to fix scrutinizer bug about getFieldValue, even though i don't
fully understand it