fix regexps in diffs. Closes #890