wikilint 2.5.4 → 2.5.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/dist/lib/node.js CHANGED
@@ -40,9 +40,7 @@ class AstNode {
40
40
  if (key === 'padding') {
41
41
  return 0;
42
42
  }
43
- return key in this
44
- ? String(this[key])
45
- : undefined;
43
+ return this[key];
46
44
  }
47
45
  /** @private */
48
46
  setAttribute(key, value) {
package/dist/lib/title.js CHANGED
@@ -64,12 +64,6 @@ class Title {
64
64
  }
65
65
  catch { }
66
66
  }
67
- else if (fragment.includes('.')) {
68
- try {
69
- fragment = decodeURIComponent(fragment.replace(/\./gu, '%'));
70
- }
71
- catch { }
72
- }
73
67
  this.fragment = fragment;
74
68
  title = title.slice(0, i).trim();
75
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wikilint",
3
- "version": "2.5.4",
3
+ "version": "2.5.6",
4
4
  "description": "A Node.js linter for MediaWiki markup",
5
5
  "keywords": [
6
6
  "mediawiki",