automation_model 1.0.563-dev → 1.0.565-dev

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.
@@ -56,7 +56,7 @@ function findMatchingElements(textToMatch, options = {}, root = document) {
56
56
  */
57
57
  function buildLooseRegexFromText(text, options) {
58
58
  if (options.singleRegex === true) {
59
- return new RegExp(text, options.ignoreCase === true ? "i" : "");
59
+ return new RegExp(text, options.ignoreCase === false ? "" : "i");
60
60
  }
61
61
  const tokens = text.split(/\s+/);
62
62
  let pattern = tokens.map((token) => snippetToAlternatives(token)).join("\\s*");
@@ -65,7 +65,7 @@ function findMatchingElements(textToMatch, options = {}, root = document) {
65
65
  }
66
66
  // check if one of the tokens end with /i
67
67
  const endWithI = tokens.some((token) => token.endsWith("/i"));
68
- return new RegExp(pattern, endWithI || options.ignoreCase === true ? "i" : "");
68
+ return new RegExp(pattern, endWithI || options.ignoreCase === false ? "" : "i");
69
69
  }
70
70
  let climb = 0;
71
71
  // check if the text to merge end with ^ follow by a number (climb), e.g. "some text^2" we should set the climb and remove the ^2 from the text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation_model",
3
- "version": "1.0.563-dev",
3
+ "version": "1.0.565-dev",
4
4
  "description": "An automation infrastructure module to be use for generative AI automation projects.",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",