Skip to content

Instantly share code, notes, and snippets.

@nshermione
Last active September 15, 2021 15:03
Show Gist options
  • Save nshermione/70598bbb098d150d2d88621d7b2517c3 to your computer and use it in GitHub Desktop.
Save nshermione/70598bbb098d150d2d88621d7b2517c3 to your computer and use it in GitHub Desktop.
Vietnamese characters
const d = `qwertyuiopasdfghjklzxcvbnm
đ
ý ỳ ỵ ỹ ỷ
ă â
á ắ ấ
à ằ ầ
ã ẵ ẫ
ả ẳ ẩ
ạ ặ ậ
ơ ô
ó ớ ố
ò ờ ồ
õ ỡ ỗ
ỏ ở ổ
ọ ợ ộ
ư
ú ứ
ù ừ
ũ ữ
ủ ử
ụ ự
ê
é ế
è ề
ẽ ễ
ẻ ể
ẹ ệ
í
ì
ĩ
ị`
lower = d.replace(/(\n| |\t)/g, '')
upper = '';
for (let char of lower) {
upper += char.toUpperCase();
}
sample = lower + upper + '1234567890!@#$%^&*()-_=+.,?/><;:"\\[]{}\'';
console.log(sample);
// qwertyuiopasdfghjklzxcvbnmđýỳỵỹỷăâáắấàằầãẵẫảẳẩạặậơôóớốòờồõỡỗỏởổọợộưúứùừũữủửụựêéếèềẽễẻểẹệíìĩỉịQWERTYUIOPASDFGHJKLZXCVBNMĐÝỲỴỸỶĂÂÁẮẤÀẰẦÃẴẪẢẲẨẠẶẬƠÔÓỚỐÒỜỒÕỠỖỎỞỔỌỢỘƯÚỨÙỪŨỮỦỬỤỰÊÉẾÈỀẼỄẺỂẸỆÍÌĨỈỊ1234567890!@#$%^&*()-_=+.,?/><;:"\[]{}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment