Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
zango-strapi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 0806d1aa
authored
2024-07-10 17:25:39 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
d304ac11
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/api/vendor/controllers/vendor.js
src/api/vendor/controllers/vendor.js
View file @
0806d1a
...
...
@@ -88,11 +88,11 @@ module.exports = createCoreController("api::vendor.vendor", () => ({
// console.log()
let
newStr
=
str
.
replace
(
/ /g
,
''
).
toUpperCase
().
replace
(
/
[^
a-zA-Z
]
/g
,
""
)
if
(
newStr
.
length
>=
4
)
{
final
=
newStr
.
slice
(
0
,
4
);
console
.
log
(
final
+
String
(
Math
.
floor
(
Math
.
random
()
*
90000
)
+
10000
))
}
else
{
final
=
newStr
console
.
log
(
final
+
String
(
Math
.
floor
(
Math
.
random
()
*
90000
)
+
10000
))
final
=
newStr
.
slice
(
0
,
4
)
+
String
(
Math
.
floor
(
Math
.
random
()
*
90000
)
+
10000
)
;
//
console.log(final+String(Math.floor(Math.random() * 90000) + 10000))
}
else
{
1
final
=
newStr
.
slice
(
0
,
4
)
+
String
(
Math
.
floor
(
Math
.
random
()
*
90000
)
+
10000
)
//
console.log(final+String(Math.floor(Math.random() * 90000) + 10000))
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment