mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
Merge pull request #6245 from koba04/fix-test-is-not-a-function
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