@ng-doc/utils 16.7.1 → 16.7.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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -14818,7 +14818,8 @@ function keywordsPlugin(config) {
14818
14818
  * @param config
14819
14819
  */
14820
14820
  function getNodes(node, parent, inlineLink, config) {
14821
- const KeywordRegExp = /([*A-Za-z0-9_$@]+[.#]?[A-Za-z0-9_-]+)/g;
14821
+ const regexp = '([*A-Za-z0-9_$@]+[.#]?[A-Za-z0-9_-]+)';
14822
+ const KeywordRegExp = inlineLink ? new RegExp(`^${regexp}$`, 'g') : new RegExp(regexp, 'g');
14822
14823
  const keywordAnchorRegexp = /^(?<keyword>[*A-Za-z0-9_$@]+)((?<delimiter>[.#])(?<anchor>[A-Za-z0-9_-]+))?$/;
14823
14824
  const {
14824
14825
  addUsedKeyword,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-doc/utils",
3
- "version": "16.7.1",
3
+ "version": "16.7.2",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "rehype": "12.0.1",