n3 1.22.3 → 1.23.0
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/browser/n3.min.js +1 -1
- package/lib/N3Writer.js +1 -1
- package/package.json +2 -2
- package/src/N3Writer.js +1 -1
package/lib/N3Writer.js
CHANGED
|
@@ -284,7 +284,7 @@ class N3Writer {
|
|
|
284
284
|
prefixList += (prefixList ? '|' : '') + this._prefixIRIs[prefixIRI];
|
|
285
285
|
}
|
|
286
286
|
IRIlist = escapeRegex(IRIlist, /[\]\/\(\)\*\+\?\.\\\$]/g, '\\$&');
|
|
287
|
-
this._prefixRegex = new RegExp(`^(?:${prefixList})[^\/]*$|` + `^(${IRIlist})([_a-zA-
|
|
287
|
+
this._prefixRegex = new RegExp(`^(?:${prefixList})[^\/]*$|` + `^(${IRIlist})([_a-zA-Z0-9][\\-_a-zA-Z0-9]*)$`);
|
|
288
288
|
}
|
|
289
289
|
// End a prefix block with a newline
|
|
290
290
|
this._write(hasPrefixes ? '\n' : '', done);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n3",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"description": "Lightning fast, asynchronous, streaming Turtle / N3 / RDF library.",
|
|
5
5
|
"author": "Ruben Verborgh <ruben.verborgh@gmail.com>",
|
|
6
6
|
"keywords": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"browserify": "^17.0.0",
|
|
39
39
|
"deep-taxonomy-benchmark": "^2.0.0",
|
|
40
40
|
"docco": "^0.9.1",
|
|
41
|
-
"eslint": "^
|
|
41
|
+
"eslint": "^9.12.0",
|
|
42
42
|
"eslint-plugin-import": "^2.29.1",
|
|
43
43
|
"eslint-plugin-jest": "^28.8.3",
|
|
44
44
|
"jest": "^29.7.0",
|
package/src/N3Writer.js
CHANGED
|
@@ -297,7 +297,7 @@ export default class N3Writer {
|
|
|
297
297
|
}
|
|
298
298
|
IRIlist = escapeRegex(IRIlist, /[\]\/\(\)\*\+\?\.\\\$]/g, '\\$&');
|
|
299
299
|
this._prefixRegex = new RegExp(`^(?:${prefixList})[^\/]*$|` +
|
|
300
|
-
`^(${IRIlist})([_a-zA-
|
|
300
|
+
`^(${IRIlist})([_a-zA-Z0-9][\\-_a-zA-Z0-9]*)$`);
|
|
301
301
|
}
|
|
302
302
|
// End a prefix block with a newline
|
|
303
303
|
this._write(hasPrefixes ? '\n' : '', done);
|