A framework for building native applications using React
Cast name to String to ensure .match is available
Summary: PR for issue #12444 In `validateProjectName` in `react-native-cli` `name.match` is called but it's not certain that `name`is a String. This casts `name`to a String before doing the match. I didn't find any tests for this file so I didn't add any. Reproduce: ``` cd react-native-cli npm install node index.js init 123 ``` Before this PR the code throws an exception, after this PR the intended `console.error` is printed. Closes https://github.com/facebook/react-native/pull/12447 Differential Revision: D4584041 fbshipit-source-id: 117e76570aa9975ac851192b030c5a77daf19bcc
M
Max Malm committed
c7f2c53fbf6ec96460e686a242c4610b413ca238
Parent: cb68b97
Committed by Facebook Github Bot <facebook-github-bot@users.noreply.github.com>
on 2/18/2017, 4:01:43 AM