enthought / enthought/traits

Provide support for re.fullmatch in String trait type

Open
#1,628 1 comment 0 reactions 0 assignees View on GitHub
component: core type: enhancement
Dominant language
Python
Stars
462
Forks
90
PR merge metrics
No merged PRs in 30d

Description

A minor feature request: for `String` validation with a regex, `re.fullmatch` is more often going to be what we want to use than `re.match`. It would be nice to provide a way to do that full match.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the String trait's regex validation entry point and the existing behavior based on re.match; no file or test path is identified in the issue. Read nearby validation tests, add coverage for full-match behavior, and consider the work done when String validation offers a way to use re.fullmatch without breaking existing matching.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.