журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[livejournal] r22759: LJSUP-13238: Calendar promo stage 2 - re...

Committer: nnikulochkina
LJSUP-13238: Calendar promo stage 2 - reminder links (DISABLED #96)
U   trunk/cgi-bin/ljtextutil.pl
Modified: trunk/cgi-bin/ljtextutil.pl
===================================================================
--- trunk/cgi-bin/ljtextutil.pl	2012-08-28 13:18:15 UTC (rev 22758)
+++ trunk/cgi-bin/ljtextutil.pl	2012-08-28 13:54:37 UTC (rev 22759)
@@ -1029,5 +1029,14 @@
     return \@link_urls;
 }
 
+sub delimited_number {
+    my ($number, $delimiter) = @_;
+    $delimiter ||= ' ';
+    
+    $number =~ s/(\d{1,3})(?=(\d{3})+$)/$1$delimiter/g;
+
+    return $number;
+}
+
 1;
 

Tags: livejournal, nikulochkina, nnikulochkina, pl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments