@samitouri / QOS-React-2 / commits / c7129fd377

match -> test

Using RegExp method `test` because this is what is wanted

Fabio M. Costa committed Dec 11, 2013 at 00:43 UTC c7129fd377c5dc0703847c1c583a138cb26a4681
1 file changed +1 -1
src/test/ReactPerf.js
+1 -1
@@ -70,7 +70,7 @@ if (__DEV__) {
70 var ExecutionEnvironment = require('ExecutionEnvironment');
71 var URL = (ExecutionEnvironment.canUseDOM && window.location.href) || '';
72 ReactPerf.enableMeasure = ReactPerf.enableMeasure ||
73 - !!URL.match(/[?&]react_perf\b/);
73 + (/[?&]react_perf\b/).test(URL);
74 }
75
76 /**