Skip to content
Permalink
Browse files

The best easter egg I could hide ;)

  • Loading branch information...
donho committed Sep 18, 2018
1 parent 71dd261 commit 74e89bdf5f4031922f27f856bd9aafb1d2739fcd
Showing with 3 additions and 1 deletion.
  1. +3 −1 PowerEditor/src/Parameters.cpp
@@ -6616,7 +6616,9 @@ Date::Date(const TCHAR *dateStr)
{
// timeStr should be Notepad++ date format : YYYYMMDD
assert(dateStr);
if (lstrlen(dateStr) == 8)
int D = lstrlen(dateStr);

if ( 8==D )
{
generic_string ds(dateStr);
generic_string yyyy(ds, 0, 4);

5 comments on commit 74e89bd

@kamoroso94

This comment has been minimized.

Copy link

replied Sep 18, 2018

🍆

@Atreidae

This comment has been minimized.

Copy link

replied Sep 19, 2018

But what if the user doesn't have a date length equal to 8? do you have options for internal plumbing as well?

@lucbloom

This comment has been minimized.

Copy link

replied Sep 19, 2018

This’ll bite you in the ass in the year 10.000!

@Eagle3386

This comment has been minimized.

Copy link

replied Oct 21, 2018

How to actually trigger this egg? Changing my date format to only 8 chars didn't offer an option to execute this method? 🤔

@sasumner

This comment has been minimized.

Copy link

replied Oct 21, 2018

It's a source code easter egg, not a runtime one. Also it is rather immature, so you might miss it. Just to be clear, and hopefully so we can stop talking about it, here it is: 8==D.

Please sign in to comment.
You can’t perform that action at this time.