Skip to content
Browse files

Update Appendix A/IndexText.ps1

  • Loading branch information...
1 parent fc5cb04 commit 4ae179c64e204fa42e3c6e0b71ccd987e23bea7a @dfinke committed Aug 18, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Appendix A/IndexText.ps1
View
6 Appendix A/IndexText.ps1
@@ -1,7 +1,7 @@
-function SlowTrain($text) {
+function SlowTrain($text) {
$h = @{}
- [regex]::split($text.ToLower(), \W+) |
+ [regex]::split($text.ToLower(), \W+) |
ForEach {
$h[$_] =''
}
@@ -11,7 +11,7 @@ function SlowTrain($text) {
function FastTrain($text) {
$h = @{}
- ForEach ($word in [regex]::split($text.ToLower(), \W+) )
+ ForEach ($word in [regex]::split($text.ToLower(), \W+) )
{
$h[$word] = ''
}

0 comments on commit 4ae179c

Please sign in to comment.
Something went wrong with that request. Please try again.