------------------------------------------------------------
revno: 1072
committer: Roger Martin <[email protected]>
branch nick: aikiframework
timestamp: Sat 2012-02-04 23:51:53 +0100
message:
  add Util:remove_comments
modified:
  libs/Util.php


--
lp:aikiframework
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk

Your team Aiki Framework Developers is subscribed to branch lp:aikiframework.
To unsubscribe from this branch go to 
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk/+edit-subscription
=== modified file 'libs/Util.php'
--- libs/Util.php	2012-02-02 21:09:33 +0000
+++ libs/Util.php	2012-02-04 22:51:53 +0000
@@ -254,6 +254,11 @@
 		return $ret;		
 	}	
 
+	public static function remove_comments ( $inputText ){
+		return preg_replace ("#/\*.*\*/#Us","" , $inputText);
+	}	
+
+
 	/**
 	 * Returns the last revision of aiki if .bzr exists, or 0 assuming this
      * is a release, since .bzr is stripped out.

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to