r1 - 16 Dec 2003 - 12:12:17 - MichaelSparksYou are here: TWiki >  Codev Web > AllowASN1AsAbbreviation
Tags:
, create new tag

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 | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo