
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
mentions-regex
Advanced tools
100% twitter compatible `@mentions` regex! Regular expression for matching `@username` mentions, as used on twitter, facebook, github, etc.
100% twitter compatible
@mentionsregex! Regular expression for matching@usernamementions, as used on twitter, facebook, github, etc.
npm i --save mentions-regex
npm test
Compatible twitter mentions regex, not only of course!
[dot] {Boolean} if true it will allow to match dotsreturn {RegExp}For more use-cases see tests
var mentionsRegex = require('mentions-regex');
mentionsRegex().test('foo @bar baz');
//=> true
mentionsRegex().exec('foo @bar baz')[1];
//=> 'bar'
mentionsRegex().test('foo email@bar.com baz');
//=> false
mentionsRegex(true).test('foo email@bar.com baz');
//=> false
mentionsRegex(true).test('foo @bar.com baz');
//=> true
mentionsRegex(true).exec('foo @bar.com baz')[1];
//=> 'bar.com'
kind-of with single letter abbreviations to javascript native types, like kindof(val, 'soa') will return true if val is string, object or array.Charlike Mike Reagent
Copyright (c) 2014-2015 Charlike Mike Reagent, contributors.
Released under the MIT license.
Proudly generated by docks(1) on May 4, 2015
FAQs
100% twitter compatible `@mentions` regex! Regular expression for matching `@username` mentions, as used on twitter, facebook, github, etc.
The npm package mentions-regex receives a total of 1,319 weekly downloads. As such, mentions-regex popularity was classified as popular.
We found that mentions-regex demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.