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.
substr()
slice()
1 parent 02de89f commit f0a65efCopy full SHA for f0a65ef
1 file changed
examples/jsm/transpiler/GLSLDecoder.js
@@ -170,7 +170,7 @@ class Tokenizer {
170
171
skip( ...params ) {
172
173
- let remainingCode = this.source.substr( this.position );
+ let remainingCode = this.source.slice( this.position );
174
let i = params.length;
175
176
while ( i -- ) {
@@ -182,7 +182,7 @@ class Tokenizer {
182
183
this.position += skipLength;
184
185
- remainingCode = this.source.substr( this.position );
+ remainingCode = this.source.slice( this.position );
186
187
// re-skip, new remainingCode is generated
188
// maybe exist previous regexp non detected
0 commit comments