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 ("^ ...")

I apologize for my bad English