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

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2008-08-14 - RafaelAlvarez
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.