Skip to content

Commit 8b981fd

Browse files
Merge pull request #163 from KB-iGOT/spv-pagination-Issue
Regex Updated for title as per requested by product team
2 parents 7e4379e + 2eda083 commit 8b981fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

project/ws/app/src/lib/routes/home/routes/events/create-event/create-event.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class CreateEventComponent implements OnInit {
6767
toastSuccess: any
6868
pictureObj: any
6969
myreg = /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/
70-
eventTitleRegex = /^(?!.*([',:])\1)(?!.*[,:']{3})[a-zA-Z0-9\s',:]*$/
70+
eventTitleRegex = /^[a-zA-Z0-9\s',:]*$/
7171

7272
// myreg = /^(http|https:\/\/){0,1}(www\.){0,1}[a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,5}[\.]{0,1}/
7373

project/ws/app/src/lib/routes/home/routes/events/edit-event/edit-event.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class EditEventComponent implements OnInit {
6363
toastSuccess: any
6464
pictureObj: any
6565
myreg = /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/
66-
eventTitleRegex = /^(?!.*([',:])\1)(?!.*[,:']{3})[a-zA-Z0-9\s',:]*$/
66+
eventTitleRegex = /^[a-zA-Z0-9\s',:]*$/
6767
// myreg = /(^|\s)((https?:\/\/)?[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?)/gi
6868
// myreg = /^(http[s]?:\/\/){0,1}(www\.){0,1}[a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,5}[\.]{0,1}/
6969

0 commit comments

Comments
 (0)