export function multiWordFilter ( actual , expected = "" ) { let reg = "" ; expected . split ( " " ) . forEach ( ( v ) => { v = v . replace ( /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g , "\\$&" ) ; reg += "(?=.*" + v + ")" ; } ) ; reg = new RegExp ( reg , "i" ) ; return actual . search ( reg ) > - 1 ; }