Skip to content

Commit

Permalink
allow comments at the end of OBJ file lines
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Deubler <[email protected]>
  • Loading branch information
TerminalTim committed Aug 26, 2024
1 parent 720f9e2 commit 28edf65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/display/src/displays/webgl/ObjParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const worker = function() {
};
const parseFloatArray = (a) => a.map(parseFloat);

const regex = /(\w*)(?: )*(.*)/;
const regex = /^(\w+)\s+(.*?)\s*(?:#.*)?$/;
const lines = text.split('\n');

for (let l = 0; l < lines.length; l++) {
Expand Down

0 comments on commit 28edf65

Please sign in to comment.