Skip to content

Instantly share code, notes, and snippets.

@bradrice
Created July 8, 2013 18:26
Show Gist options
  • Save bradrice/5951220 to your computer and use it in GitHub Desktop.
Save bradrice/5951220 to your computer and use it in GitHub Desktop.
replace the colon with unicode
if(searchVal.match(/:/g)){
n = searchVal.replace(':', '\\x3A');
$scope.searchObj['filterText'] = n;
} else {
$scope.searchObj['filterText'] = searchVal;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment