Closed (fixed)
Project:
Social Auth Facebook
Version:
3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2021 at 04:53 UTC
Updated:
2 Apr 2021 at 12:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
anjali rathodThe solution proposed by me is in the patch , please review and add comments
Comment #4
wellsThank you for contributing! The regex change is slightly off — the first group
[1-9]need to be optional so that e.g both “9.0” and “10.0” are supported.It would be nice to have a test for this as well but I wouldn’t hold up a merge on this without it.
Comment #5
anjali rathodOk. will create a new patch for it.
Comment #6
anjali rathodComment #7
wells@Anjali -- thanks for the update. We can simplify this further. Lets just change the existing regex to
^([2-9]|[1-9][0-9])\.[0-9]{1,2}$. That will match all of the supported versions with a singlepreg_matchinstead of breaking this is up in to multiple conditionals and match operations.Comment #8
anjali rathodOkay. Thanks for the help. will create a patch for the same
Comment #9
anjali rathodComment #10
ranjan.daswani commentedYes, #9 patch accept v10.0, and work well for me, thanks
Comment #12
wellsThanks, @Anjali Rathod! This is committed now.