dom-render
Advanced tools
Comparing version 1.0.29 to 1.0.30
@@ -695,7 +695,16 @@ 'use strict'; | ||
var thisRandom = RandomUtils.uuid(); | ||
var thisRegex = /[^(dr\-)]this(?=.?)/g; | ||
element.querySelectorAll("[" + RawSet.DR_THIS_NAME + "]").forEach(function (it) { | ||
it.innerHTML = it.innerHTML.replace(thisRegex, thisRandom); | ||
var message = it.innerHTML; | ||
StringUtils.regexExec(/([^(dr\-)])?this(?=.?)/g, message).reverse().forEach(function (it) { | ||
var _a; | ||
message = message.substr(0, it.index) + message.substr(it.index).replace(it[0], "" + ((_a = it[1]) !== null && _a !== void 0 ? _a : '') + drThis); | ||
}); | ||
it.innerHTML = message; | ||
}); | ||
element.innerHTML = element.innerHTML.replace(thisRegex, drThis); | ||
var message = element.innerHTML; | ||
StringUtils.regexExec(/([^(dr\-)])?this(?=.?)/g, message).reverse().forEach(function (it) { | ||
var _a; | ||
message = message.substr(0, it.index) + message.substr(it.index).replace(it[0], "" + ((_a = it[1]) !== null && _a !== void 0 ? _a : '') + drThis); | ||
}); | ||
element.innerHTML = message; | ||
return thisRandom; | ||
@@ -702,0 +711,0 @@ }; |
{ | ||
"name": "dom-render", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"main": "DomRender.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -281,7 +281,16 @@ "use strict"; | ||
var thisRandom = RandomUtils_1.RandomUtils.uuid(); | ||
var thisRegex = /[^(dr\-)]this(?=.?)/g; | ||
element.querySelectorAll("[" + RawSet.DR_THIS_NAME + "]").forEach(function (it) { | ||
it.innerHTML = it.innerHTML.replace(thisRegex, thisRandom); | ||
var message = it.innerHTML; | ||
StringUtils_1.StringUtils.regexExec(/([^(dr\-)])?this(?=.?)/g, message).reverse().forEach(function (it) { | ||
var _a; | ||
message = message.substr(0, it.index) + message.substr(it.index).replace(it[0], "" + ((_a = it[1]) !== null && _a !== void 0 ? _a : '') + drThis); | ||
}); | ||
it.innerHTML = message; | ||
}); | ||
element.innerHTML = element.innerHTML.replace(thisRegex, drThis); | ||
var message = element.innerHTML; | ||
StringUtils_1.StringUtils.regexExec(/([^(dr\-)])?this(?=.?)/g, message).reverse().forEach(function (it) { | ||
var _a; | ||
message = message.substr(0, it.index) + message.substr(it.index).replace(it[0], "" + ((_a = it[1]) !== null && _a !== void 0 ? _a : '') + drThis); | ||
}); | ||
element.innerHTML = message; | ||
return thisRandom; | ||
@@ -288,0 +297,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113296
2287