Skip to content
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

Close mismatched punctuation in messages #295

Open
zuzak opened this issue Jun 24, 2019 · 3 comments
Open

Close mismatched punctuation in messages #295

zuzak opened this issue Jun 24, 2019 · 3 comments

Comments

@zuzak
Copy link
Contributor

zuzak commented Jun 24, 2019

requested by @georgewatson

something like this, I guess:

<human> (lorem ipsum [dolor sit amet
<bot> ])
@georgewatson
Copy link
Contributor

georgewatson commented Jun 24, 2019

Should handle the following cases:

count('(') > count(')')
count('[') > count(']')
count('{') > count('}')
count('<') > count('>')
typeOf(count('"') / 2) != 'int'
count('¡') > count('!')
count('¿') > count('?')

@georgewatson
Copy link
Contributor

georgewatson commented Jun 24, 2019

Should possibly also handle the following case:

count(/<([A-Za-z]+) .*>/) != count(/<\/\1>/)

@zuzak
Copy link
Contributor Author

zuzak commented Jun 24, 2019

You could use the Unicode category values for an exhaustive list.

For example, all the opening punctuation is listed at https://www.sql-und-xml.de/unicode-database/ps.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants