Skip to content

Commit

Permalink
#2080 forgot to replace \n to '' in className (#2333)
Browse files Browse the repository at this point in the history
  • Loading branch information
manglobe authored and quantizor committed Mar 18, 2019
1 parent 0ed5eb6 commit 563941e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default (target: Object) => {
didWarnAboutClassNameUsage.add(forwardTarget);

const classNames = elementClassName
.replace(/ +/g, ' ')
.replace(/\s+/g, ' ')
.trim()
.split(' ');
// eslint-disable-next-line react/no-find-dom-node
Expand Down

0 comments on commit 563941e

Please sign in to comment.