mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix markup.test is not a function
This commit is contained in:
@@ -28,7 +28,7 @@ var ReactMarkupChecksum = {
|
||||
var checksum = adler32(markup);
|
||||
|
||||
// Add checksum (handle both parent tags, comments and self-closing tags)
|
||||
if (markup.test(COMMENT_START)) {
|
||||
if (COMMENT_START.test(markup)) {
|
||||
return markup;
|
||||
} else {
|
||||
return markup.replace(
|
||||
|
||||
Reference in New Issue
Block a user