rdflib 2.3.2 → 2.3.3-2cbb77a1

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/esm/n3parser.js CHANGED
@@ -588,8 +588,7 @@ export class SinkParser {
588
588
  while ("!^.".indexOf(str.slice(j, j + 1)) >= 0) {
589
589
  var ch = str.slice(j, j + 1);
590
590
  if (ch == ".") {
591
- var ahead = str.slice(j + 1, j + 2);
592
- if (!ahead || _notNameChars.indexOf(ahead) >= 0 && ":?<[{(".indexOf(ahead) < 0) {
591
+ if (dotTerminatesName(str, j)) {
593
592
  break;
594
593
  }
595
594
  }
package/lib/n3parser.js CHANGED
@@ -596,8 +596,7 @@ class SinkParser {
596
596
  while ("!^.".indexOf(str.slice(j, j + 1)) >= 0) {
597
597
  var ch = str.slice(j, j + 1);
598
598
  if (ch == ".") {
599
- var ahead = str.slice(j + 1, j + 2);
600
- if (!ahead || _notNameChars.indexOf(ahead) >= 0 && ":?<[{(".indexOf(ahead) < 0) {
599
+ if (dotTerminatesName(str, j)) {
601
600
  break;
602
601
  }
603
602
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rdflib",
3
3
  "description": "an RDF library for node.js. Suitable for client and server side.",
4
- "version": "2.3.2",
4
+ "version": "2.3.3-2cbb77a1",
5
5
  "private": false,
6
6
  "browserslist": [
7
7
  "> 0.5%"
package/src/n3parser.js CHANGED
@@ -649,8 +649,7 @@ export class SinkParser {
649
649
  while (("!^.".indexOf(str.slice( j, ( j + 1 ) )) >= 0)) {
650
650
  var ch = str.slice( j, ( j + 1 ) )
651
651
  if ((ch == ".")) {
652
- var ahead = str.slice( ( j + 1 ) , ( j + 2 ) )
653
- if (!(ahead) || (_notNameChars.indexOf(ahead) >= 0) && (":?<[{(".indexOf(ahead) < 0)) {
652
+ if (dotTerminatesName(str, j)) {
654
653
  break
655
654
  }
656
655
  }