We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e586bc commit cb747f9Copy full SHA for cb747f9
src/utils/IESLoader.js
@@ -28,7 +28,7 @@ function IESLamp( text ) {
28
29
function textToArray( text ) {
30
31
- text = text.replace( /^\s+|\s+$/g, '' ); // remove leading or trailing spaces
+ text = text.trim(); // remove leading or trailing spaces
32
text = text.replace( /,/g, ' ' ); // replace commas with spaces
33
text = text.replace( /\s\s+/g, ' ' ); // replace white space/tabs etc by single whitespace
34
0 commit comments