@samitouri / QOS-React-2 / commits / 5e98dceded

Fix markup.test is not a function

Toru Kobayashi committed Mar 11, 2016 at 16:41 UTC 5e98dceded14243f90adb842c1db189232f6ae39
1 file changed +1 -1
src/renderers/dom/server/ReactMarkupChecksum.js
+1 -1
@@ -28,7 +28,7 @@ var ReactMarkupChecksum = {
28 var checksum = adler32(markup);
29
30 // Add checksum (handle both parent tags, comments and self-closing tags)
31 - if (markup.test(COMMENT_START)) {
31 + if (COMMENT_START.test(markup)) {
32 return markup;
33 } else {
34 return markup.replace(