weechat-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [patch #7963] Automatically hash files if CRC32 tag is in


From: Peter Boström
Subject: [Weechat-dev] [patch #7963] Automatically hash files if CRC32 tag is in filename
Date: Tue, 05 Mar 2013 09:20:44 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.12 Safari/537.31

Follow-up Comment #3, patch #7963 (project weechat):

Ah, I didn't know _ wasn't considered word boundary. You don't need the {1}
though:

([^0-9A-Z]|^)([0-9A-F]{8})([^0-9A-Z]|$)

"foobar_0BADF00D_".match(/([^0-9A-Z]|^)([0-9A-F]{8})([^0-9A-Z]|$)/)[2] =>
"0BADF00D"

Though I'm not sure if we need to special-case ^ and $, but it should be cheap
either way. If someone sends a file which is named their CRC32 only, it would
still work. So there may be a single user who has that.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7963>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]