From 1ddbf1c8d14ebd2b69a31687fb178a84971d0765 Mon Sep 17 00:00:00 2001 From: Nate Piche Date: Tue, 22 Dec 2015 22:00:46 -0500 Subject: [PATCH] address review feedback --- src/ReactWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReactWrapper.js b/src/ReactWrapper.js index a688fcdee..e278558a7 100644 --- a/src/ReactWrapper.js +++ b/src/ReactWrapper.js @@ -293,7 +293,7 @@ export default class ReactWrapper { * @returns {String} */ html() { - return this.single(n => findDOMNode(n).outerHTML.replace(/\sdata-react[-\w]+="[^"]+"+/g, '')); + return this.single(n => findDOMNode(n).outerHTML.replace(/\sdata-reactid+="[^"]+"/g, '')); } /**