am 7fd7534b: Merge change I5101c2b1 into eclair-mr2
Merge commit '7fd7534b58b523851e932f8b1bde61532b738e8a' into eclair-mr2-plus-aosp * commit '7fd7534b58b523851e932f8b1bde61532b738e8a': Extend the date time to handle the case where the
This commit is contained in:
@@ -50,13 +50,15 @@ public final class HttpDateTime {
|
||||
* Wdy Mon DD HH:MM:SS YYYY GMT
|
||||
*
|
||||
* HH can be H if the first digit is zero.
|
||||
*
|
||||
* Mon can be the full name of the month.
|
||||
*/
|
||||
private static final String HTTP_DATE_RFC_REGEXP =
|
||||
"([0-9]{1,2})[- ]([A-Za-z]{3,3})[- ]([0-9]{2,4})[ ]"
|
||||
"([0-9]{1,2})[- ]([A-Za-z]{3,9})[- ]([0-9]{2,4})[ ]"
|
||||
+ "([0-9]{1,2}:[0-9][0-9]:[0-9][0-9])";
|
||||
|
||||
private static final String HTTP_DATE_ANSIC_REGEXP =
|
||||
"[ ]([A-Za-z]{3,3})[ ]+([0-9]{1,2})[ ]"
|
||||
"[ ]([A-Za-z]{3,9})[ ]+([0-9]{1,2})[ ]"
|
||||
+ "([0-9]{1,2}:[0-9][0-9]:[0-9][0-9])[ ]([0-9]{2,4})";
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user