Skip to content

Commit

Permalink
fix: remove unneccesary excape character
Browse files Browse the repository at this point in the history
  • Loading branch information
seasick committed Jan 21, 2024
1 parent f130de4 commit eec7ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/openSCAD/parseParameter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function parseParameters(script: string): Parameter[] {
script = script.split(/^(module |function )/m)[0];

const parameters: Record<string, Parameter> = {};
const parameterRegex = /^([a-z0-9A-Z_\$]+)\s*=\s*([^;]+)/gm; // TODO: Use AST parser instead of regex
const parameterRegex = /^([a-z0-9A-Z_$]+)\s*=\s*([^;]+)/gm; // TODO: Use AST parser instead of regex
const groupRegex = /^\/\*\s*\[([^\]]+)\]\s*\*\//gm;

const groupSections: { id: string; group: string; code: string }[] = [];
Expand Down

0 comments on commit eec7ecf

Please sign in to comment.