Skip to content

Commit

Permalink
Merge branch 'hotfix/1.21.1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
eciavatta committed Aug 23, 2021
2 parents dded53f + 8491d5d commit c29a8cb
Show file tree
Hide file tree
Showing 3 changed files with 292 additions and 274 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "caronte-frontend",
"version": "1.21.0",
"version": "1.21.1",
"private": false,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.28",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/panels/StreamsPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class StreamsPane extends Component {
pattern["dot_all"] && (flags += "s");
pattern["multi_line"] && (flags += "m");
pattern["unicode_property"] && (flags += "u");
const regex = new RegExp("(" + pattern.regex + ")", flags);
const regex = new RegExp(pattern.regex.replace(/^\//, '(').replace(/\/$/, ')'), flags);
streamContent = reactStringReplace(streamContent, regex, (match, i) => (
<span key={i} className="matched-occurrence" style={{"backgroundColor": rule.color}}>{match}</span>
));
Expand Down
Loading

0 comments on commit c29a8cb

Please sign in to comment.