apn-app-manager 2.3.0 → 2.3.1

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 +1 -1
  2. package/src/util.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apn-app-manager",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
package/src/util.js CHANGED
@@ -528,7 +528,7 @@ function regexReplace(string, from, to, startWordBounded, endWordBounded) {
528
528
  let regex;
529
529
  // See regex test for why we are using `[\w-]` with negative-look instead of `\b`
530
530
  // https://regexr.com/8g9cn
531
- regexPrefix = startWordBounded ? `(?<![\\w-])` : "";
531
+ regexPrefix = startWordBounded ? `(?<![\\w!-])` : "";
532
532
  regexSuffix = endWordBounded ? `(?![\\w-])` : "";
533
533
  regex = new RegExp(regexPrefix + regexEscape(from) + regexSuffix, "g");
534
534
  return string.replace(regex, to);