citation-js 0.6.5 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/citation.js CHANGED
@@ -5664,7 +5664,7 @@ var lexer = _moo["default"].states({
5664
5664
  text: /[^{$}\s~\\]+/
5665
5665
  }),
5666
5666
  namesLiteral: _objectSpread(_objectSpread({
5667
- and: /\s+and\s+/,
5667
+ and: /\s+[aA][nN][dD]\s+/,
5668
5668
  comma: ',',
5669
5669
  hyphen: '-',
5670
5670
  equals: '='
@@ -8332,6 +8332,15 @@ var formats = {
8332
8332
  "extends": '@else/url'
8333
8333
  }
8334
8334
  },
8335
+ '@doi/short-url': {
8336
+ parse: function parse(url) {
8337
+ return url.replace(/^(\s*)/, '$1https://');
8338
+ },
8339
+ parseType: {
8340
+ dataType: 'String',
8341
+ predicate: /^\s*((?:dx\.)?doi\.org\/(10.\d{4,9}\/[-._;()/:A-Z0-9]+))\s*$/i
8342
+ }
8343
+ },
8335
8344
  '@doi/id': {
8336
8345
  parse: id.parse,
8337
8346
  parseType: {