sax 1.2.3 → 1.2.4

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.
Files changed (2) hide show
  1. package/lib/sax.js +1 -1
  2. package/package.json +2 -2
package/lib/sax.js CHANGED
@@ -933,7 +933,7 @@
933
933
  }
934
934
  }
935
935
  entity = entity.replace(/^0+/, '')
936
- if (numStr.toLowerCase() !== entity) {
936
+ if (isNaN(num) || numStr.toLowerCase() !== entity) {
937
937
  strictFail(parser, 'Invalid character entity')
938
938
  return '&' + parser.entity + ';'
939
939
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "sax",
3
3
  "description": "An evented streaming XML parser in JavaScript",
4
4
  "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
5
- "version": "1.2.3",
5
+ "version": "1.2.4",
6
6
  "main": "lib/sax.js",
7
7
  "license": "ISC",
8
8
  "scripts": {
@@ -20,6 +20,6 @@
20
20
  ],
21
21
  "devDependencies": {
22
22
  "standard": "^8.6.0",
23
- "tap": "^10.0.2"
23
+ "tap": "^10.5.1"
24
24
  }
25
25
  }