Skip to content

Feature 000#1

Open
saurabhrajm19 wants to merge 20 commits intomainfrom
develop
Open

Feature 000#1
saurabhrajm19 wants to merge 20 commits intomainfrom
develop

Conversation

@saurabhrajm19
Copy link
Owner

No description provided.

Copy link
Collaborator

@SanchayGupta97 SanchayGupta97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job, few minor comments

Copy link
Collaborator

@SanchayGupta97 SanchayGupta97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few comments

//there could be only one email id with no trailing number, so checking it
if (lastEmail.matches(".*[0-9]")) {
//if there is already a number at the end, increment the number and append it to the id
int val = lastEmail.charAt(lastEmail.length() - 1) - '0';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens when there are multiple digits appended at the end?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ie when you need to shift from 19 to 20 ;29-30 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants