mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Add rule no-constant-binary-expression (no-changelog) (#7670)
https://eslint.org/docs/latest/rules/no-constant-binary-expression
This commit is contained in:
@@ -141,7 +141,8 @@ export default defineComponent({
|
||||
if (tag === 'img' && name === 'src') {
|
||||
if (value.match(fileIdRegex)) {
|
||||
const id = value.split('fileId:')[1];
|
||||
return `src=${friendlyAttrValue(imageUrls[id])}` || '';
|
||||
const attributeValue = friendlyAttrValue(imageUrls[id]);
|
||||
return attributeValue ? `src=${attributeValue}` : '';
|
||||
}
|
||||
// Only allow http requests to supported image files from the `static` directory
|
||||
const isImageFile = value.split('#')[0].match(/\.(jpeg|jpg|gif|png|webp)$/) !== null;
|
||||
|
||||
Reference in New Issue
Block a user