Bold Virtual Vetting Interview keyword
Browse files- app/services/utils.py +8 -0
app/services/utils.py
CHANGED
|
@@ -219,6 +219,14 @@ def emphasize_keywords(text: str) -> str:
|
|
| 219 |
flags=re.IGNORECASE,
|
| 220 |
)
|
| 221 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
return escaped
|
| 223 |
|
| 224 |
|
|
|
|
| 219 |
flags=re.IGNORECASE,
|
| 220 |
)
|
| 221 |
|
| 222 |
+
# Bold "Virtual Vetting Interview"
|
| 223 |
+
escaped = re.sub(
|
| 224 |
+
r'\b(Virtual\s+Vetting\s+Interview)\b',
|
| 225 |
+
r'<strong>\1</strong>',
|
| 226 |
+
escaped,
|
| 227 |
+
flags=re.IGNORECASE,
|
| 228 |
+
)
|
| 229 |
+
|
| 230 |
return escaped
|
| 231 |
|
| 232 |
|