-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[explorer] fix: search namespace without dash #1152
Conversation
✅ Deploy Preview for explorer-dev ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
814a0a4
to
686b29a
Compare
02a0a7a
to
a102bfc
Compare
|
||
inputValues.forEach(({input, pageName}) => runBasicWhitespaceTests(pageName, input, { | ||
pageName, | ||
param: input.replace(/\s/g, '') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider adding expected to last object and then
param: expected ? expected : input
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider adding expected to last object and then
I am confused about this.
the object below is considered as expectedResult
{
pageName,
param: input.replace(/\s/g, '')
}
param: expected ? expected : input
why do we need this?
a102bfc
to
6b6cb4b
Compare
* [explorer] fix: search namespace without dash * [explorer] task: refactor UI store unit test * [explorer] task: patch update on UI store
* [explorer] fix: search namespace without dash * [explorer] task: refactor UI store unit test * [explorer] task: patch update on UI store
What was the issue?
-
, it not working in explorer, the reason is that the search box is defaulted removed-
.-
to prevent the address with a dash.What's the fix?
-
in the search box because the namespace allows the string contain a dash.-
in our address format (for example wallet), so it won't affect address search.