[PR] Fix haste_name_reducers on Windows
[PR] Fix haste_name_reducers on Windows

Summary:
Adds Windows support for the `module.system.haste.name_reducers` option in .flowconfig, used by projects including React Native.

The file paths weren't being normalized for Windows in `is_haste_file` and `haste_name` (converting `\` to `/`), so the regex was always failing.

Fixes #7138
Pull Request resolved: https://github.com/facebook/flow/pull/7419

Reviewed By: mroch

Differential Revision: D13900899

Pulled By: avikchaudhuri

fbshipit-source-id: b159344ad27a27e520a1352f4f66078f2247d6aa

facebook/flow,popham/flow,samwgoldman/flow,mroch/flow,facebook/flow,mroch/flow,mroch/flow,gabelevi/flow,gabelevi/flow,mroch/flow,facebook/flow,samwgoldman/flow,gabelevi/flow,popham/flow,popham/flow,facebook/flow,samwgoldman/flow,samwgoldman/flow,mroch/flow,gabelevi/flow,popham/flow,facebook/flow,popham/flow,samwgoldman/flow,facebook/flow,popham/flow,gabelevi/flow,samwgoldman/flow,gabelevi/flow,popham/flow,facebook/flow,samwgoldman/flow,mroch/flow,gabelevi/flow,mroch/flow