shouldIgnore function for Windows