aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/material-parser.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/material-parser.js')
-rwxr-xr-xjs/lib/rdge/materials/material-parser.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/rdge/materials/material-parser.js b/js/lib/rdge/materials/material-parser.js
index 6bf23b6e..6d9433e9 100755
--- a/js/lib/rdge/materials/material-parser.js
+++ b/js/lib/rdge/materials/material-parser.js
@@ -66,9 +66,9 @@ var MaterialParser = function MaterialParser(theStr) {
66 if (!this._strBuffer) return; 66 if (!this._strBuffer) return;
67 67
68 // find the limits 68 // find the limits
69 var index = this._strBuffer.search(/\S/); // first non-whitespace character 69 var index = this._strBuffer.search(/\S/); // first non-whitespace character
70 if (index > 0) this._strBuffer = this._strBuffer.slice(index); 70 if (index > 0) this._strBuffer = this._strBuffer.slice(index);
71 index = this._strBuffer.search(/\s/); // first whitespace character marking the end of the token 71 index = this._strBuffer.search(/\s/); // first whitespace character marking the end of the token
72 72
73 var token; 73 var token;
74 if (index > 0) { 74 if (index > 0) {