-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Geedy tag matching and punctuation #1103
Comments
hey, yeah good question. There are a few ways you could do this. You could split by whatever, then filter then down: let parts = doc.splitAfter('@hasComma');
parts = parts.if('#Place') I sometimes do a aggressive split and then join em up, which is probably a weirder process: let parts = doc.split('#Place')
parts= parts.joinIf('#Place && @hasComma', '#Place') dunno! |
Thank you, .splitAfter() seems to do what we need. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I've come across an issue with greedy tag matching and comma separation. The comma is included as part of the match so that multiple tags are combined into one match.
This is likely expected behaviour for a tag such as #Place but is there a way to force the comma as a word separator? Using .normalize() doesn't seem to help it just removes the comma from the match.
Thank you
The text was updated successfully, but these errors were encountered: