@orioro/util 0.14.0 → 0.15.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @orioro/util
2
2
 
3
+ ## 0.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - add support for special chars inside string interpolator
8
+
3
9
  ## 0.14.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.js CHANGED
@@ -932,8 +932,10 @@ function debugFn(fnName, fn, logCall, logResult) {
932
932
  }
933
933
 
934
934
  /**
935
- * /\$\{\s*([\w$.]+)\s*\}/g
936
- * ![](docs/resources/interpolation_regexp.png)
935
+ * /\$\{\s*([A-Za-z0-9_$.=#+?@ \/'"-]+)\s*\}/g
936
+ * ![](docs/interpolation_regexp.png)
937
+ *
938
+ * https://regex-vis.com/?r=%2F%5C%24%5C%7B%5Cs*%28%5BA-Za-z0-9_%24.%3D%23%2B%3F%40+%5C%2F%27%22-%5D%2B%29%5Cs*%5C%7D%2Fg
937
939
  *
938
940
  * RegExp used for matching interpolation expressions.
939
941
  * Allows a non-interrupted sequence of alphanumeric chars ([A-Za-z0-9_]),
@@ -954,7 +956,7 @@ function debugFn(fnName, fn, logCall, logResult) {
954
956
  *
955
957
  * @const {RegExp} INTERPOLATION_REGEXP
956
958
  */
957
- var INTERPOLATION_REGEXP = /\$\{\s*([\w$.=\s]+)\s*\}/g;
959
+ var INTERPOLATION_REGEXP = /\$\{\s*([A-Za-z0-9_$.=#+?@ \/'"-]+)\s*\}/g;
958
960
  var DEFAULT_SIGN = '=';
959
961
  function _parsePathExpr(pathExpr) {
960
962
  var splitRes = pathExpr.split(DEFAULT_SIGN);
package/dist/index.mjs CHANGED
@@ -930,8 +930,10 @@ function debugFn(fnName, fn, logCall, logResult) {
930
930
  }
931
931
 
932
932
  /**
933
- * /\$\{\s*([\w$.]+)\s*\}/g
934
- * ![](docs/resources/interpolation_regexp.png)
933
+ * /\$\{\s*([A-Za-z0-9_$.=#+?@ \/'"-]+)\s*\}/g
934
+ * ![](docs/interpolation_regexp.png)
935
+ *
936
+ * https://regex-vis.com/?r=%2F%5C%24%5C%7B%5Cs*%28%5BA-Za-z0-9_%24.%3D%23%2B%3F%40+%5C%2F%27%22-%5D%2B%29%5Cs*%5C%7D%2Fg
935
937
  *
936
938
  * RegExp used for matching interpolation expressions.
937
939
  * Allows a non-interrupted sequence of alphanumeric chars ([A-Za-z0-9_]),
@@ -952,7 +954,7 @@ function debugFn(fnName, fn, logCall, logResult) {
952
954
  *
953
955
  * @const {RegExp} INTERPOLATION_REGEXP
954
956
  */
955
- var INTERPOLATION_REGEXP = /\$\{\s*([\w$.=\s]+)\s*\}/g;
957
+ var INTERPOLATION_REGEXP = /\$\{\s*([A-Za-z0-9_$.=#+?@ \/'"-]+)\s*\}/g;
956
958
  var DEFAULT_SIGN = '=';
957
959
  function _parsePathExpr(pathExpr) {
958
960
  var splitRes = pathExpr.split(DEFAULT_SIGN);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orioro/util",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "packageManager": "yarn@4.0.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",