diff options
author | Kris Kowal | 2012-07-06 11:52:06 -0700 |
---|---|---|
committer | Kris Kowal | 2012-07-06 15:01:48 -0700 |
commit | 648ee61ae84216d0236e0dbc211addc13b2cfa3a (patch) | |
tree | 8f0f55557bd0c47a84e49c1977c950645d284607 /js/lib/rdge/materials/material-parser.js | |
parent | aedd14b18695d031f695d27dfbd94df5614495bb (diff) | |
download | ninja-648ee61ae84216d0236e0dbc211addc13b2cfa3a.tar.gz |
Expand tabs
Diffstat (limited to 'js/lib/rdge/materials/material-parser.js')
-rwxr-xr-x | js/lib/rdge/materials/material-parser.js | 4 |
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) { |