Skip to content

Commit 1c8fc86

Browse files
Copilotmanusa
andauthored
fix(service-manager): change replace method for replaceAll for string replacements (intentionality) (#681)
* Initial plan * Replace String#replace() with String#replaceAll() in context-menu.js Co-authored-by: manusa <488391+manusa@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: manusa <488391+manusa@users.noreply.github.com>
1 parent ee519f8 commit 1c8fc86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service-manager/context-menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const getImageFilename = imageUrl => {
2828
} catch {
2929
// Invalid URL or no filename, use default
3030
}
31-
const timestamp = new Date().toISOString().replace(/[:.]/g, '-').split('T').join('-').split('-').slice(0, 6).join('');
31+
const timestamp = new Date().toISOString().replaceAll(':', '-').replaceAll('.', '-').split('T').join('-').split('-').slice(0, 6).join('');
3232
return `image-${timestamp}.png`;
3333
};
3434

0 commit comments

Comments
 (0)