PromucFlow_constructor/app/client/src/workers/Evaluation
Sangeeth Sivan 97e983c82d
fix: allow localhost as a valid domain for image widget url (#24411)
## Description
- If the image url in image widget points to localhost domain, it is
treated as an invalid url. Updated regex to allow localhost as a valid
domain.

#### PR fixes following issue(s)
Fixes #22985 

#### Media

#### Type of change

- Bug fix (non-breaking change which fixes an issue)


## Testing
>
#### How Has This Been Tested?
> Please describe the tests that you ran to verify your changes. Also
list any relevant details for your test configuration.
> Delete anything that is not relevant
- [x] Manual
- [x] Jest
- [ ] Cypress
>
>
#### Test Plan
> Add Testsmith test cases links that relate to this PR
>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## Checklist:
#### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
2023-06-19 16:15:55 +05:30
..
__tests__ fix: allow localhost as a valid domain for image widget url (#24411) 2023-06-19 16:15:55 +05:30
fns Add web api types 2023-06-14 17:29:15 +05:30
handlers feat: Passing another param isUndefined to BINDING_SUCCESS event (#23112) 2023-05-16 16:16:40 +05:30
JSObject fix: js object functions were retained after clearing (#23504) 2023-05-24 09:12:46 +05:30
domApis.ts feat: Bundle optimization and first load improvements (#21667) 2023-05-11 10:56:03 +05:30
errorModifier.ts feat: JSObject variable as a state (JSObject variable mutation) (#19926) 2023-04-07 13:11:36 +05:30
evalTreeWithChanges.ts fix: Prevent evalTree and configTree from being undefined (#23374) 2023-05-22 07:17:23 +01:00
evaluate.ts fix: Sanitise toast error msgs (#22544) 2023-05-31 12:14:07 +05:30
evaluation.worker.ts fix: Added global error handler in worker to catch unhandled promise rejections (#23709) 2023-05-25 15:08:34 +05:30
evaluationSubstitution.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
formEval.ts feat: disable spreadsheet entity in case of insert/delete one (#22490) 2023-04-24 10:10:47 +05:30
functionDeterminer.ts chore: Disable post process during fn determination (#23289) 2023-05-16 13:18:21 +05:30
getEntityForContext.ts feat: JSObject variable as a state (JSObject variable mutation) (#19926) 2023-04-07 13:11:36 +05:30
helpers.ts
indirectEval.ts feat: Enable fetch API (#17832) 2022-12-01 03:28:58 +05:30
ReplayDSL.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
replayUtils.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
SetupDOM.ts feat: Bundle optimization and first load improvements (#21667) 2023-05-11 10:56:03 +05:30
types.ts feat: Passing another param isUndefined to BINDING_SUCCESS event (#23112) 2023-05-16 16:16:40 +05:30
validations.ts fix: allow localhost as a valid domain for image widget url (#24411) 2023-06-19 16:15:55 +05:30