Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F7651301
D729.id1829.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
761 B
Referenced Files
None
Subscribers
None
D729.id1829.diff
View Options
diff --git a/page.php b/page.php
--- a/page.php
+++ b/page.php
@@ -385,7 +385,7 @@
}
function extractYYYYMMDDDateFromURL() {
- $pattern = "@/([12][0-9]{3})\-([0-9]{2})\-([0-9]{2})/@";
+ $pattern = "@/([12][0-9]{3})[/\-]([0-9]{2})[/\-]([0-9]{2})/@";
if (preg_match($pattern, $this->url, $matches)) {
$this->yyyy = $matches[1];
$this->mm = $matches[2];
@@ -394,7 +394,7 @@
}
function extractYYYYDDMMateFromURL() {
- $pattern = "@/([12][0-9]{3})\-([0-9]{2})\-([0-9]{2})/@";
+ $pattern = "@/([12][0-9]{3})[/\-]([0-9]{2})[/\-]([0-9]{2})/@";
if (preg_match($pattern, $this->url, $matches)) {
$this->yyyy = $matches[1];
$this->mm = $matches[3];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 10:38 (18 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2620850
Default Alt Text
D729.id1829.diff (761 B)
Attached To
Mode
D729: Allow slash separator in Page extract date from URL methods
Attached
Detach File
Event Timeline
Log In to Comment