rdflib 2.3.2-dd04a8c3 → 2.3.2

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,7 +588,8 @@ 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
- if (dotTerminatesName(str, j)) {
591
+ var ahead = str.slice(j + 1, j + 2);
592
+ if (!ahead || _notNameChars.indexOf(ahead) >= 0 && ":?<[{(".indexOf(ahead) < 0) {
592
593
  break;
593
594
  }
594
595
  }
package/lib/n3parser.js CHANGED
@@ -596,7 +596,8 @@ 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
- if (dotTerminatesName(str, j)) {
599
+ var ahead = str.slice(j + 1, j + 2);
600
+ if (!ahead || _notNameChars.indexOf(ahead) >= 0 && ":?<[{(".indexOf(ahead) < 0) {
600
601
  break;
601
602
  }
602
603
  }
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-dd04a8c3",
4
+ "version": "2.3.2",
5
5
  "private": false,
6
6
  "browserslist": [
7
7
  "> 0.5%"
package/src/n3parser.js CHANGED
@@ -649,7 +649,8 @@ 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
- if (dotTerminatesName(str, j)) {
652
+ var ahead = str.slice( ( j + 1 ) , ( j + 2 ) )
653
+ if (!(ahead) || (_notNameChars.indexOf(ahead) >= 0) && (":?<[{(".indexOf(ahead) < 0)) {
653
654
  break
654
655
  }
655
656
  }