Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions osprey_ui/src/components/entities/RichDescription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ interface RichDescriptionProps {
features: { [featureName: string]: string };
}

const INTERPOLATE_REG_EX = /{([A-z0-9_]+)}/;
const SPLIT_REG_EX = /(:?{[A-z0-9_]+})/;
const INTERPOLATE_REG_EX = /{(\w+)}/;
const SPLIT_REG_EX = /(:?{\w+})/;

const RichDescription = ({ description, features }: RichDescriptionProps) => {
const interpolatedDescription = description.split(SPLIT_REG_EX).map((part, i) => {
Expand Down
3 changes: 2 additions & 1 deletion osprey_worker/src/osprey/engine/stdlib/udfs/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ class StringCleaningArguments(StringArguments):
)

# sub for l33t -> leet
_L33T_THREES_SUB_PATTERN: re.Pattern[str] = re.compile(r'([A-z]?)(3+)([A-z]?)', flags=re.IGNORECASE)
# with IGNORECASE this matches 3s surrounded by unicode letters like İ, ı, ſ, and K which is expected
_L33T_THREES_SUB_PATTERN: re.Pattern[str] = re.compile(r'([A-Za-z]?)(3+)([A-Za-z]?)', flags=re.IGNORECASE)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Comment thread
cassidyjames marked this conversation as resolved.

# sub for |7 -> 17
_L33T_PIPE_NUMBER_SUB_PATTERN: re.Pattern[str] = re.compile(r'\|(\d)')
Expand Down
Loading