sg v0.3 Release Notes
Release Date: 2015-09-11 // over 9 years ago-
Warning: breaking change in configuration for tokens of
num
pattern!๐ New features
Custom user agent
๐ In the root tag of the XML settings, one can define the
user-agent
attribute. That will set all requests as coming from that user agent, allowing quick identification in analytics events for example.๐ XML Stylesheet (XSL)
๐ An XML Stylesheet is now embedded within the XML results, meaning once the results are generated, you can just open the XML file with any web browser, and the data will be displayed in a human readable way. Note that for ease of rendering and styling, the stylesheet will load Bootstrap's CSS from a CDN, so if you don't have an internet connection, the colors may not show and the styling may not be as nice.
Numerical tokens as min and max
๐ In the XML configuration file, the
min
andmax
attributes for numerical tokens now correspond to the minimum number and the maximum number (instead of the exponent of ten). For example<token token="token3" pattern="num" min="5" max="10" />
means thattoken3
will be between 5 (include) and 10 (not included) (when it used to mean10 **5
and10** 10
).Pull request summary