Skip to content

Instantly share code, notes, and snippets.

@mk-pmb
Last active October 4, 2016 23:33
Show Gist options
  • Save mk-pmb/d750e575d12f1ca595cfe5316235b95e to your computer and use it in GitHub Desktop.
Save mk-pmb/d750e575d12f1ca595cfe5316235b95e to your computer and use it in GitHub Desktop.
List of characters I consider suspicious.
// nodejs -p 'require("univeil").rgx.nonprintGroups; // v0.1.8 +'
{ asciiControlChars_nonpr: /[\x00-\x1F\x7F]/g,
generalPunctuation_nonpr: /[\u2000-\u200F\u2028-\u202F\u205F-\u206F]/g,
latinSupplement_ctrl: /[\x80-\x9F]/g,
nbsp_nonpr: /\xA0/g,
privateUseArea_untrust: /[\uE000-\uF8FF]/g,
softHyphen_nonpr: /\xAD/g,
specials_nonpr: /[\uFFF9-\uFFFF]/g,
variationSelectors_nonpr: /[\uFE00-\uFE0F]/g,
zwnbspAkaByteOrderMark_nonpr: /\uFEFF/g }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment