Skip to content

Commit

Permalink
fix: Allow the code to be /*! instead of /** (#32)
Browse files Browse the repository at this point in the history
`/*!` is in some tools a marker to keep comments even when minifying
  • Loading branch information
Artur- authored Mar 17, 2023
1 parent 7b1cd22 commit 4999512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vaadin-development-mode-detector.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
(function() {
const DEV_MODE_CODE_REGEXP =
/\/\*\*\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i;
/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i;

const FlowClients = window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients;

Expand Down

0 comments on commit 4999512

Please sign in to comment.