소스 검색

Change regex for website field

Visman 1 년 전
부모
커밋
a956829ae8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Models/Pages/Profile/Edit.php

+ 1 - 1
app/Models/Pages/Profile/Edit.php

@@ -70,7 +70,7 @@ class Edit extends Profile
             }
 
             if ($this->rules->editWebsite) {
-                $ruleWebsite = 'exist|string:trim,empty|max:100|regex:%^(?:https?:)?//[^\x00-\x1F\s]+$%iu';
+                $ruleWebsite = 'exist|string:trim,empty|max:100|regex:%^https?://[^\x00-\x1F\s]+$%uD';
             } else {
                 $ruleWebsite = 'absent';
             }