Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 04813f9

Browse files
committed
Support textContent that has spaces
Currently, the check fails for a <paper-button> that contains text that has a space. Change the test to check what it is supposed to - whether there's any non-whitespace content.
1 parent 6fa4c08 commit 04813f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paper-button.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
z: 1,
132132

133133
attached: function() {
134-
if (this.textContent && !this.textContent.match(/\s+/)) {
134+
if (this.textContent && this.textContent.match(/\S+/)) {
135135
console.warn('Using textContent to label the button is deprecated. Use the "label" property instead');
136136
this.label = this.textContent;
137137
}

0 commit comments

Comments
 (0)