mirror of https://github.com/vector-im/riot-web
de-lint email, extend
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
f514f1ff74
commit
8bf13f8f48
|
@ -116,8 +116,6 @@ src/components/views/voip/IncomingCallBox.js
|
||||||
src/components/views/voip/VideoFeed.js
|
src/components/views/voip/VideoFeed.js
|
||||||
src/components/views/voip/VideoView.js
|
src/components/views/voip/VideoView.js
|
||||||
src/ContentMessages.js
|
src/ContentMessages.js
|
||||||
src/email.js
|
|
||||||
src/extend.js
|
|
||||||
src/HtmlUtils.js
|
src/HtmlUtils.js
|
||||||
src/ImageUtils.js
|
src/ImageUtils.js
|
||||||
src/Invite.js
|
src/Invite.js
|
||||||
|
|
|
@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
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 = {
|
module.exports = {
|
||||||
looksValid: function(email) {
|
looksValid: function(email) {
|
||||||
return EMAIL_ADDRESS_REGEX.test(email);
|
return EMAIL_ADDRESS_REGEX.test(email);
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = function(dest, src) {
|
module.exports = function(dest, src) {
|
||||||
for (var i in src) {
|
for (const i in src) {
|
||||||
if (src.hasOwnProperty(i)) {
|
if (src.hasOwnProperty(i)) {
|
||||||
dest[i] = src[i];
|
dest[i] = src[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue