Resolve "Reg ex field type should be able to give feedback if there was no match" #183
No reviewers
Labels
No labels
Security
TeX
auto-update
board
done
board
ready
board
todo
check
delete-eslint-rc-js
check
update-builddeps-package-json
check
update-eslint-rc-js
check
update-gitignore
check
update-merge-request-template
check
update-prettier-ignore
check
update-pyproject-toml
check
update-renovate-json
check
update-tox-ini
part
backend
part
ci
part
docs
part
frontend
part
i18n
part
non-technical
part
packaging
prio
1
prio
2
prio
3
release-mr-5.x
size
large
size
medium
size
small
source
customer
source
customer::fsmw
source
customer::fss
source
customer::teckids
source
downstream
type
breaking
type
bug
type
feature
type
refactoring
workflow
blocked
workflow
confirmed
workflow
current-todo
workflow
discussing
workflow
new-app
workflow
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aleksis/AlekSIS-App-CSVImport!183
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "50-reg-ex-field-type-should-be-able-to-give-feedback-if-there-was-no-match"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #50
assigned to @nik
added 1 commit
Compare with previous version
marked this merge request as ready
This should not raise
RuntimeError, but the same exception type as trying to access an unmatched group.Ok, that would be an
IndexError.changed this line in version 2 of the diff
added 1 commit
6a48e539- Add arg to regex field type to raise an exception if no match was foundCompare with previous version
Sounds reasonable. Technically, the whole pattern yields matching group
0, so the whole pattern not matching is anIndexErroron accessing that group.(Although Python for some inobvious reason breaks this contract.)
Then merge, please.
resolved all threads
mentioned in commit
1ba3c1d691