resolve conflicts

This commit is contained in:
Omid Nikrah
2020-07-12 12:52:40 +04:30
9 changed files with 199 additions and 21 deletions
+7 -1
View File
@@ -27,6 +27,12 @@ function kFormatter(num) {
: Math.sign(num) * Math.abs(num);
}
function isValidHexColor(hexColor) {
return new RegExp(
/^([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}|[A-Fa-f0-9]{4})$/
).test(hexColor);
}
function request(data) {
return new Promise((resolve, reject) => {
axios({
@@ -42,4 +48,4 @@ function request(data) {
});
}
module.exports = { renderError, kFormatter, encodeHTML, request };
module.exports = { renderError, kFormatter, encodeHTML, isValidHexColor, request };