Skip to content

Commit

Permalink
Merge pull request #98 from nikkorn/mdsl-comments-pattern-fix
Browse files Browse the repository at this point in the history
Fixed issue where empty comments were not processed correctly
  • Loading branch information
nikkorn authored Oct 10, 2024
2 parents 8159ad0 + 3d2c2b0 commit 1b210da
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mistreevous.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/mistreevous.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mistreevous.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mistreevous.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/mdsl/MDSLUtilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function popAndCheck(tokens: string[], expected?: string | string[]): str
*/
export function tokenise(definition: string): TokeniseResult {
// Clean the definition by removing any comments.
definition = definition.replace(/\/\*(.|\n)+?\*\//g, "");
definition = definition.replace(/\/\*(.|\n)*?\*\//g, "");

// Swap out any node/attribute argument string literals with a placeholder and get a mapping of placeholders to original values as well as the processed definition.
const { placeholders, processedDefinition } = substituteStringLiterals(definition);
Expand Down

0 comments on commit 1b210da

Please sign in to comment.