Tags:
create new tag
, view all tags

Proposal : Allow things like ASN1 as a valid abbreviation

(Minor change)

Currently things like ASN would be a valid abbreviation. Allowing things like ASN1 as a valid abbreviation would be extremely useful for many cases.

Proposed change:

diff -u -r1.15.2.6 TWiki.pm
--- TWiki.pm    6 Dec 2003 14:41:44 -0000       1.15.2.6
+++ TWiki.pm    16 Dec 2003 12:49:48 -0000
@@ -510,7 +510,7 @@
     $webNameRegex = qr/[$upperAlpha]+[$mixedAlphaNum]*/;
     $defaultWebNameRegex = qr/_[${mixedAlphaNum}_]+/;
     $anchorRegex = qr/\#[${mixedAlphaNum}_]+/;
-    $abbrevRegex = qr/[$upperAlpha]{3,}/;
+    $abbrevRegex = qr/[$upperAlpha][$upperAlpha$numeric]{2,}/;
 
     # Simplistic email regex, e.g. for WebNotify processing - no i18n
     # characters allowed

(Simpler than explaining)

-- MS - 16 Dec 2003

Topic revision: r2 - 2008-08-14 - RafaelAlvarez
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.