We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea6fc7 commit 097072eCopy full SHA for 097072e
src/BytebeamLogger.h
@@ -73,7 +73,15 @@ class BytebeamLogger {
73
// get the module string
74
String moduleObj = String(module);
75
76
- int startIdx = moduleObj.lastIndexOf('\\') + 1;
+ int startIdx = moduleObj.lastIndexOf('\\');
77
+
78
+ //fix for linux
79
+ if (startIdx == -1){
80
+ startIdx = moduleObj.lastIndexOf('/');
81
+ }
82
83
+ startIdx += 1;
84
85
int endIdx = moduleObj.lastIndexOf('.');
86
87
moduleObj = moduleObj.substring(startIdx, endIdx);
0 commit comments