Skip to content

Release 2021.01.22

Compare
Choose a tag to compare
@ilius ilius released this 22 Jan 19:34
· 113 commits to master since this release
a9ad44d

Changes since last release (2020.01.05)

  • A lot of improvements in error messages
  • A lot of refactoring
  • Better unit testing
  • New Features
    • Unicode code points, like [\u00e0-\u00ef]{5} and \U0001F603
    • Group references \1, \2, etc
      • For example to repeat a generated string in a function
    • $escape(...) Escape unicode characters, non-printable characters and double quote
    • $?(...) Randomly include or omit the string/pattern (%50 chance, adds 1 bit to entropy)
    • $date(2000,2020,-) Generate a random date in the given year range
    • $space(...) Adds spaces between each two characters of string (generated from given pattern)
    • $expand(|...) Adds | (for example) between each two characters (similar to $space)
    • $rjust(PATTERN,N,X) Justify to right, N is width (N>=1), X is the character to fill
    • $ljust(PATTERN,N,X) Justify to left, similar to $rjust
    • $center(PATTERN,N,X) Justify to center, similar to $rjust
    • $romaji(...) Converts Japanese hiragana/katakana string to Latin
    • $shuffle(...) Shuffle characters of string or generated password.
      • We can not calculate how much entropy it adds for now. So it won't add to entropy.