aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/material-parser.js
diff options
context:
space:
mode:
authorKris Kowal2012-07-06 11:52:06 -0700
committerKris Kowal2012-07-06 15:01:48 -0700
commit648ee61ae84216d0236e0dbc211addc13b2cfa3a (patch)
tree8f0f55557bd0c47a84e49c1977c950645d284607 /js/lib/rdge/materials/material-parser.js
parentaedd14b18695d031f695d27dfbd94df5614495bb (diff)
downloadninja-648ee61ae84216d0236e0dbc211addc13b2cfa3a.tar.gz
Expand tabs
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) {