slackhq / slack-api-docs

API Docs for Slack.com
https://api.slack.com/
426 stars 85 forks source link

better regex for matching special sequences #58

Closed robinkunde closed 5 years ago

robinkunde commented 8 years ago

It's good that the docs suggest lazy matching, but this still requires backtracking.

A better alternative, as documented at http://www.regular-expressions.info/repeat.html, is to use a character class with negation.

CLAassistant commented 5 years ago

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.