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.
- package/package.json +1 -1
- package/src/util.js +1 -1
package/package.json
CHANGED
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);
|