Skip to content

Commit c29a8cb

Browse files
committed
Merge branch 'hotfix/1.21.1' into main
2 parents dded53f + 8491d5d commit c29a8cb

File tree

3 files changed

+292
-274
lines changed

3 files changed

+292
-274
lines changed

frontend/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "caronte-frontend",
3-
"version": "1.21.0",
3+
"version": "1.21.1",
44
"private": false,
55
"dependencies": {
66
"@fortawesome/fontawesome-svg-core": "^1.2.28",

frontend/src/components/panels/StreamsPane.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class StreamsPane extends Component {
145145
pattern["dot_all"] && (flags += "s");
146146
pattern["multi_line"] && (flags += "m");
147147
pattern["unicode_property"] && (flags += "u");
148-
const regex = new RegExp("(" + pattern.regex + ")", flags);
148+
const regex = new RegExp(pattern.regex.replace(/^\//, '(').replace(/\/$/, ')'), flags);
149149
streamContent = reactStringReplace(streamContent, regex, (match, i) => (
150150
<span key={i} className="matched-occurrence" style={{"backgroundColor": rule.color}}>{match}</span>
151151
));

0 commit comments

Comments
 (0)