Add GBP (£) to Symbol List #2146
Add GBP (£) to Symbol List #2146richard-bridgeman wants to merge 1 commit intovalidatorjs:masterfrom
Conversation
pano9000
left a comment
There was a problem hiding this comment.
Hi,
thanks for the PR. :-)
A) The change you made is not a valid RegExp though, you would need to add the symbol inside the "range" expression here:
so from:
/^[-#!$@%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$£/;
you would need to change to
/^[-#!$£@%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/
However, regardless of that error:
the question would still be, if adding the GBP symbol here makes sense or not - I will have a look at this later this evening and provide some feedback :-)
Thanks!
|
this PR belongs to issue #2145 |
The previous addition to the symbol list did not include any clarification on which symbols are supposed to be in that list so I think this addition is fine. Apart from fixing the RegExp it would also be nice if a new test case could be added using £ |
after checking (I will likely create a new issue about it though, as I don't really think the current state is really that ideal -> but that is a separate topic :-)) |
|
Sorry, closing as duplicate of #2148 |
Added the GBP £ pound sign in to Symbol List