parseCMSRevision(cmsRevision)
Last updated March 01, 2006
Version: 1 | Requires: CF5 | Library: StrLib
Description:
Parses a CMS (SNV or CVS) revision string into a usable variable. Accepts CVS $Revsion: $ or SVN $LastChangedRevision: $.
Return Values:
Returns a number.
Example:
<cfoutput>
CVS: #parseCMSRevision("$Revision: 1.3 $")#
SVN: #parseCMSRevision("$LastChangedRevision: 13 $")#
</cfoutput>
Parameters:
Name | Description | Required |
---|---|---|
cmsRevision | Version string. | Yes |
Full UDF Source:
/**
* Parses a CMS (SNV or CVS) revision string into a usable variable.
*
* @param cmsRevision Version string. (Required)
* @return Returns a number.
* @author Peter J. Farrell (pjf@maestropublishing.com)
* @version 1, March 1, 2006
*/
function parseCMSRevision(cmsRevision) {
return listGetAt(arguments.cmsRevision, 2, " ");
}
Search CFLib.org
Latest Additions
Raymond Camden added
QueryDeleteRows
November 04, 2017
Leigh added
nullPad
May 11, 2016
Raymond Camden added
stripHTML
May 10, 2016
Kevin Cotton added
date2ExcelDate
May 05, 2016
Raymond Camden added
CapFirst
April 25, 2016