Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gu imageworks extension
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
joetsuihk
gu imageworks extension
Commits
8b50ebca
Commit
8b50ebca
authored
Jan 19, 2022
by
edwin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix rare case on model image having same name with product image
parent
f34abf9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fetch.js
fetch/fetch.js
+2
-2
No files found.
fetch/fetch.js
View file @
8b50ebca
...
...
@@ -104,7 +104,7 @@
}
else
if
(
asset
.
filename
.
includes
(
`goods_
${
SKU
}
_sub`
)
||
asset
.
filename
.
includes
(
`_
${
SKU
}
_chip`
)
||
(
asset
.
filename
.
match
(
new
RegExp
(
`^goods_[0-9]{2}_
${
SKU
}
$`
))
&&
asset
.
models
.
length
===
0
)
){
(
asset
.
filename
.
match
(
new
RegExp
(
`^goods_[0-9]{2}_
${
SKU
}
$`
))
&&
asset
.
models
.
length
===
0
&&
asset
.
products
.
length
===
1
)
){
classes
=
"is-product"
;
...
...
@@ -272,7 +272,7 @@
if
(
item
.
filename
.
includes
(
`goods_
${
SKU
}
_sub`
)
||
item
.
filename
.
includes
(
`_
${
SKU
}
_chip`
)
||
(
item
.
filename
.
match
(
new
RegExp
(
`^goods_[0-9]{2}_
${
SKU
}
$`
))
&&
item
.
models
.
length
===
0
)){
// file name include SKU and no model
(
item
.
filename
.
match
(
new
RegExp
(
`^goods_[0-9]{2}_
${
SKU
}
$`
))
&&
item
.
models
.
length
===
0
&&
item
.
products
.
length
===
1
)){
// file name include SKU and no model
arrlist
[
"product"
].
push
(
item
);
}
else
if
(
item
.
filename
.
includes
(
`
${
SKU
}
_I0`
)
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment