Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1035794 // dataURLMimeType

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (9368L) is out of date.

sS dataURLMimeType(S dataURL) {
  if (!isDataURL(dataURL)) null;
  S s = dropPrefixOrNull("data:", dataURL);
  if (s == null) null;
  int i = indexOfAny(s, ";,");
  if (i < 0) null;
  ret takeFirst(s, i);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035794
Snippet name: dataURLMimeType
Eternal ID of this version: #1035794/2
Text MD5: 672f50df72869b53eb71c73c7b0af9dd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-07-29 19:22:23
Source code size: 213 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 116 / 163
Version history: 1 change(s)
Referenced in: [show references]