adding clipboard support for git clone dialog

@gaurave PR for https://github.com/dart-lang/spark/issues/2235 


I'd say surround the pattern in `^...$` to make this really robust.