-
Notifications
You must be signed in to change notification settings - Fork 0
Lesson4 #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Lesson4 #4
Conversation
Om1X
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Нет первого и второго задания.
Regular/index.html
Outdated
| event.preventDefault(); | ||
| let regExpName = /[a-z]+/ig; | ||
| let regExpPhone = /\+7\(\d{3}\)\d{3}-\d{4}/ig; | ||
| let regExpMail = /^[a-z]+[.-]?[a-z][email protected]$/ig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
проверка почты жестко привязана к одному домену.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Исправил
| <p>Например: <b>(.)',g</b> создает регулярное выражение <b>/(.)'/g</b> и заменяет выражение на $1", где $1 - элемент в скобках перед символом ' | ||
| </p><br> | ||
| <p>Выражение <b>([^a-z])'|'$,gmi</b> - заменяет только одинарные ковычки в начале и конце строки при замене на $1" </p> | ||
| <h3>Результат</h3><br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Есть и первое и второе задание. Они прописаны выше в тегах p. Просто нужно их ввести в input при загрузке страницы
Теперь почта не привязана к одному домену
|
Теперь почта не зависит от одного домена |
No description provided.