Skip to content

Commit

Permalink
Update regex-pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-vl committed Mar 26, 2024
1 parent ad95424 commit 33369cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface OutdatedPanelOptions extends Omit<PanelOptions, 'editorMode'> {
*/
const normalizeGetOption = (code: string): string => {
const search =
/(data.series|replaceVariables\(|theme.|echartsInstance.|echarts.|ecStat.|eventBus|locationService|notifySuccess\(|notifyError\()/gm;
/(data.series|replaceVariables\(|theme\.|echartsInstance\.|echarts\.|ecStat\.|eventBus|locationService|notifySuccess\(|notifyError\()/gm;

return code.replace(search, (value) => {
switch (value) {
Expand Down

0 comments on commit 33369cf

Please sign in to comment.