Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tjrgg/invite-regex
Regular expression for matching Discord invite URLs
https://github.com/tjrgg/invite-regex
Last synced: about 1 month ago
JSON representation
Regular expression for matching Discord invite URLs
- Host: GitHub
- URL: https://github.com/tjrgg/invite-regex
- Owner: tjrgg
- License: mit
- Created: 2019-09-29T06:12:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T15:58:33.000Z (over 5 years ago)
- Last Synced: 2024-11-16T02:50:54.856Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
invite-regex
> Regular expression for matching [Discord](https://discordapp.com) invite URLs
## Install
```sh
$ npm install invite-regex
```## Usage
```js
const inviteRegex = require('invite-regex');inviteRegex().test('https://discord.gg/2JY79nd');
// => true
```## Author
👤 **Tyler Richards**
* GitHub: [@tjrgg](https://github.com/tjrgg)
* Twitter: [@tjrgg](https://twitter.com/tjrgg)## Support Me
Give a ⭐️ if this project helped you!