mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-17 19:57:03 +02:00
de-lint email, extend
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
f514f1ff74
commit
8bf13f8f48
@ -116,8 +116,6 @@ src/components/views/voip/IncomingCallBox.js
|
||||
src/components/views/voip/VideoFeed.js
|
||||
src/components/views/voip/VideoView.js
|
||||
src/ContentMessages.js
|
||||
src/email.js
|
||||
src/extend.js
|
||||
src/HtmlUtils.js
|
||||
src/ImageUtils.js
|
||||
src/Invite.js
|
||||
|
@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
var EMAIL_ADDRESS_REGEX = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;
|
||||
const EMAIL_ADDRESS_REGEX = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;
|
||||
|
||||
module.exports = {
|
||||
looksValid: function(email) {
|
||||
return EMAIL_ADDRESS_REGEX.test(email);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||
'use strict';
|
||||
|
||||
module.exports = function(dest, src) {
|
||||
for (var i in src) {
|
||||
for (const i in src) {
|
||||
if (src.hasOwnProperty(i)) {
|
||||
dest[i] = src[i];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user