Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

isHexColor.js#1973

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
miladganjali wants to merge1 commit intojquery-validation:master
base:master
Choose a base branch
Loading
frommiladganjali:patch-1
Open

isHexColor.js#1973

miladganjali wants to merge1 commit intojquery-validation:masterfrommiladganjali:patch-1

Conversation

miladganjali
Copy link

In this additional file we check is input value is hex formate color

alfonsomartinde reacted with thumbs up emoji
In this additional file we check is input value is hex formate color
Copy link
Member

@ArkniArkni left a comment
edited
Loading

Choose a reason for hiding this comment

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

Hi@miladganjali,

I'm really sorry for taking so long to review your PR. We were overwhelmed with the increasing number of issues and PR.

I have left some comments I would like addressed before merging.

Also, do you think you can add some tests for this method?
If so, you can create a file undertest/additional/ and import it intest/index.html.

Thanks for your contribution :)

@@ -0,0 +1,3 @@
$.validator.addMethod( "ishexcolor", function( value, element ) {
Copy link
Member

Choose a reason for hiding this comment

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

Can you change the name tohexcolor in order to be consistent with other additional methods?
Also, I would like the file to be renamed tohexcolor as well.

@@ -0,0 +1,3 @@
$.validator.addMethod( "ishexcolor", function( value, element ) {
return this.optional( element ) || /^#(?:[0-9a-f]{6}|[0-9a-f]{3})$/i.test( value );
}, "This is not hex format color" );
Copy link
Member

Choose a reason for hiding this comment

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

Please change this message to something like:Please specify a valid hex color value

@ArkniArkni mentioned this pull requestJul 20, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ArkniArkniArkni requested changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@miladganjali@Arkni

[8]ページ先頭

©2009-2025 Movatter.jp