@salesforcedevs/dx-components 0.19.3-alpha.40 → 0.19.3-alpha.44
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSearchRegExp } from "utils/regexps";
|
|
2
2
|
|
|
3
|
-
const MARK_TAGS = /<\/?mark
|
|
3
|
+
const MARK_TAGS = /<\/?mark.*>/gi;
|
|
4
4
|
|
|
5
5
|
// mark tags dif color on ref page
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ export const highlightTerms = (
|
|
|
31
31
|
element.innerHTML = element.innerHTML.replace(MARK_TAGS, "");
|
|
32
32
|
}
|
|
33
33
|
if (element.innerHTML.match(searchExp) && query) {
|
|
34
|
-
console.log("matching", element);
|
|
34
|
+
console.log("matching", element, element.innerHTML);
|
|
35
35
|
element.innerHTML = element.innerHTML.replace(
|
|
36
36
|
searchExp,
|
|
37
37
|
"<mark>$&</mark>"
|
|
@@ -43,7 +43,7 @@ export const highlightTerms = (
|
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
console.log(element.querySelectorAll("mark"))
|
|
46
|
+
console.log(element.querySelectorAll("mark"));
|
|
47
47
|
|
|
48
48
|
element
|
|
49
49
|
.querySelectorAll("mark")
|