﻿<?xml version="1.0" encoding="utf-8"?>
<snippet name = "Remove Leading Characters" description = "If a given character (such as a space) appears at the beginning of the given string, removes that character." preview="code" type="block">
<insertText location="beforeSelection">
<![CDATA[function removeLeadingChar (inputString, removeChar)
{
	var returnString = inputString;
	if (removeChar.length)
	{
	  while(''+returnString.charAt(0)==removeChar)
		{
		  returnString=returnString.substring(1,returnString.length);
		}
	}
	return returnString;
}]]>
</insertText>
<insertText location="afterSelection"><![CDATA[]]>
</insertText>
</snippet>
