unique filter broken with multi-word parameters?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- angularjs, javascript
- Domain
- frontend
Research direction
Look at the unique filter implementation in the angular-filter library, likely in a file like src/filter/unique.js. The issue is parsing multi-word keys like 'Referring Provider'. Examine how the filter parses the expression argument. Check test files for existing unique filter tests to understand the expected behavior. The fix involves updating the parser to handle multi-word keys, possibly by supporting quoted strings.
Written by the indexing model from the issue text.
Description
Hello, I have JSON data that includes multi-word parameters. When I try the unique filter in my ng-repeat I get the error that the second word in the parameter is an unexpected token.
Does the unique filter support multi-word keys/parameters? I've tried wrapping in single quotes, double curly braces to no avail.
(in the following, histConfig.column is a scope variable referring to a multi-word key in importedData)
ng-repeat="row in importedData | uniq:histConfig.column"
error msg:
Error: [$parse:syntax] Syntax Error: Token 'Provider' is an unexpected token at column 11 of the expression [Referring Provider] starting at [Provider].
- Dominant language
- JavaScript
- Stars
- 2.9k
- Forks
- 319
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from a8m/angular-filter
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
a8m/angular-filter#267 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
a8m/angular-filter#260 · 1 reaction ·
-
KiB and MiB are wrongly used in place of kB and MBPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
a8m/angular-filter#254 · 2 comments · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
a8m/angular-filter#250 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
a8m/angular-filter#208 · 1 comment · 1 reaction ·
All issues in a8m/angular-filter
Similar issues
-
triage-needed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
MicrosoftDocs/edge-developer#3970 ·
Maintainers usually reply within 1 day
-
agent/scanner hive/hosted-available-lke648397-260827-5n31 quality testing
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
PWA stores a grouped number entry 1000x too small in German localePossibly taken @Minhal128 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Add: YRF MusicOpencheck:passed feeds:add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
iptv-org/database#37102 · 2 comments ·
Maintainers usually reply within 9 days
-
[workshop-sim] Repair: Add a fallback sample .lock.yml to the Agentic Workflows Intro Activity 1Openfeedback simulation workshop
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
githubnext/gh-aw-workshop#4328 ·
Maintainers usually reply within 1 day