ya-bbcode 3.0.0 → 3.1.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.
Files changed (2) hide show
  1. package/package.json +10 -10
  2. package/ya-bbcode.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ya-bbcode",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Yet another BBCode Parser",
5
5
  "keywords": [
6
6
  "bbc",
@@ -36,21 +36,21 @@
36
36
  },
37
37
  "dependencies": {},
38
38
  "devDependencies": {
39
- "@commitlint/cli": "^17.0.3",
40
- "@commitlint/config-conventional": "^17.0.3",
41
- "@nodecraft/eslint-config": "^19.0.0",
42
- "ava": "^4.3.0",
39
+ "@commitlint/cli": "^17.4.2",
40
+ "@commitlint/config-conventional": "^17.4.2",
41
+ "@nodecraft/eslint-config": "^22.0.0",
42
+ "ava": "^5.1.1",
43
43
  "coveralls": "^3.1.1",
44
- "eslint": "^8.19.0",
44
+ "eslint": "^8.32.0",
45
45
  "eslint-plugin-json": "^3.1.0",
46
46
  "eslint-plugin-node": "^11.1.0",
47
- "eslint-plugin-unicorn": "^43.0.0",
48
- "husky": "^8.0.1",
49
- "lint-staged": "^13.0.3",
47
+ "eslint-plugin-unicorn": "^45.0.2",
48
+ "husky": "^8.0.3",
49
+ "lint-staged": "^13.1.0",
50
50
  "nyc": "^15.1.0"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=14",
54
54
  "npm": ">=8"
55
55
  }
56
- }
56
+ }
package/ya-bbcode.js CHANGED
@@ -101,7 +101,7 @@ class yabbcode {
101
101
  },
102
102
  };
103
103
  regex = {
104
- tags: /(\[[^\s\]^]+])/g,
104
+ tags: /(\[[^\]^]+])/g,
105
105
  newline: /\r\n|\r|\n/g,
106
106
  placeholders: /\[TAG-[1-9]+]/g,
107
107
  };
@@ -315,7 +315,7 @@ class yabbcode {
315
315
  module: parts[0].toLowerCase(),
316
316
  isClosing: tag.slice(1, 2) === '/',
317
317
  raw: tag,
318
- attr: parts[1],
318
+ attr: parts.slice(1).join('='),
319
319
  closing: null,
320
320
  children: [],
321
321
  parent: null,