Skip to content

Commit cb747f9

Browse files
committed
fix codeql failure
1 parent 2e586bc commit cb747f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/IESLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function IESLamp( text ) {
2828

2929
function textToArray( text ) {
3030

31-
text = text.replace( /^\s+|\s+$/g, '' ); // remove leading or trailing spaces
31+
text = text.trim(); // remove leading or trailing spaces
3232
text = text.replace( /,/g, ' ' ); // replace commas with spaces
3333
text = text.replace( /\s\s+/g, ' ' ); // replace white space/tabs etc by single whitespace
3434

0 commit comments

Comments
 (0)