Update scanner.go

Fixed a bug when running under Windows
In Windows end of line is "CR + LF"
In the Unix end of line is "LF"
This caused incorrect operation regexp ("^ ... $")
Although not disturbed the regexp ("^ ...")
Merge pull request #12 from abclogin/master

Update scanner.go