MCPcopy Index your code
hub / github.com/buildbot/buildbot / emailInString

Function emailInString

www/data-module/src/data/DataUtils.ts:97–104  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

95}
96
97export function emailInString(s: string) {
98 const emailRegex = /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*/;
99 try {
100 return emailRegex.exec(s)?.pop() || '';
101 } catch (error) {
102 return '';
103 }
104}

Callers 2

DataUtils.test.tsFile · 0.90

Calls 1

popMethod · 0.80

Tested by

no test coverage detected