lepinkainen / titleparser

A golang implementation of an URL title parser running in AWS Lambda

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove extra whitespace in the middle of a title

lepinkainen opened this issue · comments

re:=regex.Mustcompile(`\s+`)
title = re.ReplaceAllLiteralString(title, " ")

�Test case: https://www.bell-labs.com/unix50/