Fix file name matching in commit_delta to perform substring matching

commit_delta predicate was matching the entire file name against the
given regex while other predicates (commit_edits, commit_message_matches)
performed substring matching. It was inconsistent that for commit_delta we
needed to write something like:

  commit_delta('.*\.java')

to match all *.java files, while for commit_edits we needed:

  commit_edits('\.java$', '...').

to match the same set of (Java) files.

Change-Id: Ib3360684d570539522bfad7b8df2d99734e7157e
Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
1 file changed