Skip to content

Conversation

@progfay
Copy link
Owner

@progfay progfay commented Nov 23, 2025

Proposed Changes

  • To avoid RegExp matching twice

Comment on lines -34 to -37
const match =
raw.match(placeFirstGoogleMapRegExp) ??
raw.match(coordFirstGoogleMapRegExp);
if (match === null) return [];
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createGoogleMapNode execute String.prototype.match with patterns of NodeParser.
However, RegExp.prototype.exec has already executed for all patterns of NodeParserCreatorOptions.

@progfay progfay merged commit 1c59ea0 into main Nov 23, 2025
2 checks passed
@progfay progfay deleted the pass-exec-result-to-node-creator branch November 23, 2025 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant