Skip to content

Instantly share code, notes, and snippets.

@hmert
Created July 28, 2010 13:51
Show Gist options
  • Save hmert/494587 to your computer and use it in GitHub Desktop.
Save hmert/494587 to your computer and use it in GitHub Desktop.
// ikilemeleri yok ediyorum böylece
function replaceDups(field) {
field = field.replace(/\s(\w+\s)\1/, " $1");
return field;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment